@@ -173,7 +173,7 @@ res, err = cli:wait('/path/to/key', res.body.node.modifiedIndex + 2, 10)
173173
174174### readdir
175175
176- ` syntax: res, err = cli:readdir(key :string [, recursive:boolean]) `
176+ ` syntax: res, err = cli:readdir(dir :string [, recursive:boolean]) `
177177
178178- ` recursive ` : boolean - get all the contents under a directory.
179179
@@ -187,7 +187,7 @@ local res, err = cli:readdir('/path/to/dir')
187187
188188### mkdir
189189
190- ` syntax: res, err = cli:mkdir(key :string [, ttl:int]) `
190+ ` syntax: res, err = cli:mkdir(dir :string [, ttl:int]) `
191191
192192Creates a directory.
193193
@@ -199,7 +199,7 @@ local res, err = cli:mkdir('/path/to/dir', 10)
199199
200200### mkdirnx
201201
202- ` syntax: res, err = cli:mkdirnx(key :string [, ttl:int]) `
202+ ` syntax: res, err = cli:mkdirnx(dir :string [, ttl:int]) `
203203
204204Creates a directory if that directory does not exist.
205205
@@ -211,7 +211,7 @@ local res, err = cli:mkdirnx('/path/to/dir', 10)
211211
212212### rmdir
213213
214- ` syntax: res, err = cli:rmdir(key :string [, recursive:boolean]) `
214+ ` syntax: res, err = cli:rmdir(dir :string [, recursive:boolean]) `
215215
216216- ` recursive ` : boolean - remove all the contents under a directory.
217217
@@ -225,7 +225,7 @@ local res, err = cli:rmdir('/path/to/dir')
225225
226226### waitdir
227227
228- ` syntax: res, err = cli:waitdir(key :string [, modified_index:uint [, timeout:uint] ]) `
228+ ` syntax: res, err = cli:waitdir(dir :string [, modified_index:uint [, timeout:uint] ]) `
229229
230230
231231- ` modified_index ` : uint - this argument to use to the ` prev_index ` query of atomic operation.
@@ -239,7 +239,7 @@ local res, err = cli:waitdir('/path/to/dir')
239239
240240### push
241241
242- ` syntax: res, err = cli:push(key :string, val:JSON value [, ttl:int]) `
242+ ` syntax: res, err = cli:push(dir :string, val:JSON value [, ttl:int]) `
243243
244244Pushs a value into the specified directory.
245245
0 commit comments