Fix docs for fs.*chown
authorMickaël Delahaye <mickael.delahaye@gmail.com>
Mon, 15 Aug 2011 13:09:03 +0000 (15:09 +0200)
committerkoichik <koichik@improvement.jp>
Mon, 15 Aug 2011 13:45:41 +0000 (22:45 +0900)
Fix bad parameters of fs.chown[Sync], fs.fchown[Sync] and
fs.lchown[Sync] in documentation.

Fixes #1533.

doc/api/fs.markdown

index 3fa9f1a..6d01164 100644 (file)
@@ -73,30 +73,30 @@ given to the completion callback.
 
 Synchronous ftruncate(2).
 
-### fs.chown(path, mode, [callback])
+### fs.chown(path, uid, gid, [callback])
 
 Asycnronous chown(2). No arguments other than a possible exception are given
 to the completion callback.
 
-### fs.chownSync(path, mode)
+### fs.chownSync(path, uid, gid)
 
 Synchronous chown(2).
 
-### fs.fchown(path, mode, [callback])
+### fs.fchown(path, uid, gid, [callback])
 
 Asycnronous fchown(2). No arguments other than a possible exception are given
 to the completion callback.
 
-### fs.fchownSync(path, mode)
+### fs.fchownSync(path, uid, gid)
 
 Synchronous fchown(2).
 
-### fs.lchown(path, mode, [callback])
+### fs.lchown(path, uid, gid, [callback])
 
 Asycnronous lchown(2). No arguments other than a possible exception are given
 to the completion callback.
 
-### fs.lchownSync(path, mode)
+### fs.lchownSync(path, uid, gid)
 
 Synchronous lchown(2).