From aabdd5d0456bba51d17e65f0ab7324e4a1a49a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20Geisendo=CC=88rfer?= Date: Tue, 15 Feb 2011 08:41:17 -0500 Subject: [PATCH] Correct fs.open API documentation The fact that the mode parameter is optional for fs.open and fs.openSync was not documented. --- doc/api/fs.markdown | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/fs.markdown b/doc/api/fs.markdown index 3e846abd87..39ffcbdf27 100644 --- a/doc/api/fs.markdown +++ b/doc/api/fs.markdown @@ -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).