From 81c43015fd718d4d4c5b1c0eb6224ca021ffde68 Mon Sep 17 00:00:00 2001 From: Ryan Zimmerman Date: Thu, 16 Nov 2023 13:22:21 -0500 Subject: [PATCH] doc: fix fs.writeFileSync return value documentation In https://github.com/nodejs/node/pull/50009, the return value was accidentally made part of `flush` option bullet point. --- 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.