Parcourir la source

docs: fix code block formatting

Rob Szumski il y a 11 ans
Parent
commit
bfd4a29f67
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      Documentation/api.md

+ 3 - 0
Documentation/api.md

@@ -301,14 +301,17 @@ curl 'http://127.0.0.1:2379/v2/keys/foo?wait=true&waitIndex=7'
 ```
 ```
 
 
 We get the index is outdated response, since we miss the 1000 events kept in etcd.
 We get the index is outdated response, since we miss the 1000 events kept in etcd.
+
 ```
 ```
 {"errorCode":401,"message":"The event in requested index is outdated and cleared","cause":"the requested history has been cleared [1003/7]","index":2002}
 {"errorCode":401,"message":"The event in requested index is outdated and cleared","cause":"the requested history has been cleared [1003/7]","index":2002}
 ```
 ```
 
 
 To start watch, first we need to fetch the current state of key `/foo` and the etcdIndex.
 To start watch, first we need to fetch the current state of key `/foo` and the etcdIndex.
+
 ```sh
 ```sh
 curl 'http://127.0.0.1:2379/v2/keys/foo' -vv
 curl 'http://127.0.0.1:2379/v2/keys/foo' -vv
 ```
 ```
+
 ``` 
 ``` 
 < HTTP/1.1 200 OK
 < HTTP/1.1 200 OK
 < Content-Type: application/json
 < Content-Type: application/json