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.

PR-URL: https://github.com/nodejs/node/pull/50760
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
This commit is contained in:
Ryan Zimmerman 2023-11-18 13:25:48 -05:00 committed by GitHub
parent a628ddaf9e
commit 724a233026
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.