From e83baa688de7649715ca431a98b32cd845532fff Mon Sep 17 00:00:00 2001 From: Ryan Zimmerman Date: Sat, 18 Nov 2023 13:25:48 -0500 Subject: [PATCH] doc: fix fs.writeFileSync return value documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In https://github.com/nodejs/node/pull/50009, the return value was accidentally made part of `flush` option bullet point. PR-URL: https://github.com/nodejs/node/pull/50760 Reviewed-By: Luigi Pinca Reviewed-By: Vinícius Lourenço Claro Cardoso Reviewed-By: Deokjin Kim --- doc/api/fs.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index 243ab75ca72541..50abf3678b6300 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -6256,7 +6256,8 @@ changes: * `flag` {string} See [support of file system `flags`][]. **Default:** `'w'`. * `flush` {boolean} If all data is successfully written to the file, and `flush` is `true`, `fs.fsyncSync()` is used to flush the data. - Returns `undefined`. + +Returns `undefined`. The `mode` option only affects the newly created file. See [`fs.open()`][] for more details.