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 UlisesGascon committed Dec 11, 2023
1 parent 598c205 commit f89a5eb
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 @@ -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 f89a5eb

Please sign in to comment.