Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

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
  • Loading branch information...
jhckragh authored and bnoordhuis committed Nov 4, 2011
1 parent 89014c9 commit c1472ac105b9813552eeff3525cbef61b8290a7a
Showing with 5 additions and 5 deletions.
  1. +5 −5 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.

0 comments on commit c1472ac

Please sign in to comment.
You can’t perform that action at this time.