From c1472ac105b9813552eeff3525cbef61b8290a7a Mon Sep 17 00:00:00 2001 From: "Jacob H.C. Kragh" Date: Fri, 4 Nov 2011 23:07:10 +0100 Subject: [PATCH] docs: fix some minor typos in the fs documentation * fchmodSync: replace 'path' with 'fd' * lchmod: replace 'fd' with 'path' * utimes, futimes, fsync: mark 'callback' as optional --- doc/api/fs.markdown | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 2ee59785230..fd84f82f243 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -117,11 +117,11 @@ Synchronous chmod(2). Asynchronous fchmod(2). No arguments other than a possible exception are given to the completion callback. -### fs.fchmodSync(path, mode) +### fs.fchmodSync(fd, mode) Synchronous fchmod(2). -### fs.lchmod(fd, mode, [callback]) +### fs.lchmod(path, mode, [callback]) Asynchronous lchmod(2). No arguments other than a possible exception are given to the completion callback. @@ -272,18 +272,18 @@ The file is created if it does not exist. Synchronous open(2). -### fs.utimes(path, atime, mtime, callback) +### fs.utimes(path, atime, mtime, [callback]) ### fs.utimesSync(path, atime, mtime) Change file timestamps of the file referenced by the supplied path. -### fs.futimes(fd, atime, mtime, callback) +### fs.futimes(fd, atime, mtime, [callback]) ### fs.futimesSync(fd, atime, mtime) Change the file timestamps of a file referenced by the supplied file descriptor. -### fs.fsync(fd, callback) +### fs.fsync(fd, [callback]) Asynchronous fsync(2). No arguments other than a possible exception are given to the completion callback.