Skip to content

Commit

Permalink
doc: fix fs.writeFileSync return value documentation
Browse files Browse the repository at this point in the history
In #50009, the return value was accidentally made part of `flush` option bullet point.

PR-URL: #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>
  • Loading branch information
RyanZim authored and UlisesGascon committed Dec 19, 2023
1 parent 7be1222 commit 549d442
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/fs.md
Expand Up @@ -6220,7 +6220,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.
Expand Down

0 comments on commit 549d442

Please sign in to comment.