Correct fs.open API documentation

The fact that the mode parameter is optional for fs.open and
fs.openSync was not documented.
v0.7.4-release
Felix Geisendörfer 2011-02-15 08:41:17 -05:00 committed by Ryan Dahl
parent 29b0dc4ec8
commit aabdd5d045
1 changed files with 3 additions and 3 deletions

View File

@ -207,12 +207,12 @@ to the completion callback.
Synchronous close(2).
### fs.open(path, flags, mode=0666, [callback])
### fs.open(path, flags, [mode], [callback])
Asynchronous file open. See open(2). Flags can be 'r', 'r+', 'w', 'w+', 'a',
or 'a+'. The callback gets two arguments `(err, fd)`.
or 'a+'. `mode` defaults to 0666. The callback gets two arguments `(err, fd)`.
### fs.openSync(path, flags, mode=0666)
### fs.openSync(path, flags, [mode])
Synchronous open(2).