From c3ae1cfbab85491db69e46dc0c91c19b2f8301ef Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Sat, 8 May 2021 08:01:23 +0200 Subject: [PATCH] doc: fix fs.openSync() signature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `mode` argument depends on the `flags` argument but it is optional even if the `flags` argument is specified. PR-URL: https://github.com/nodejs/node/pull/38591 Reviewed-By: Antoine du Hamel Reviewed-By: Michaƫl Zasso Reviewed-By: Anna Henningsen Reviewed-By: Darshan Sen Reviewed-By: Colin Ihrig Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: Zijian Liu Reviewed-By: Benjamin Gruenbaum --- doc/api/fs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 4289c972383d15..c31b14ce69cb7e 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4501,7 +4501,7 @@ and cleaning up the directory. The `encoding` option sets the encoding for the `path` while opening the directory and subsequent read operations. -### `fs.openSync(path[, flags, mode])` +### `fs.openSync(path[, flags[, mode]])`