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 <[email protected]>
Reviewed-By: Vinícius Lourenço Claro Cardoso <[email protected]>
Reviewed-By: Deokjin Kim <[email protected]>
  • Loading branch information
RyanZim authored and RafaelGSS committed Nov 29, 2023
1 parent a0c01b2 commit b4935dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b4935dd

Please sign in to comment.