From d3de0ef5d4fbab13358728db7af38760b52467a3 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 edd7054d6aab36..ae1db3899f4fe8 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4533,7 +4533,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]])`