Skip to content

Commit 81c4301

Browse files
authored
doc: fix fs.writeFileSync return value documentation
In nodejs#50009, the return value was accidentally made part of `flush` option bullet point.
1 parent bfe32ec commit 81c4301

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/fs.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6256,7 +6256,8 @@ changes:
62566256
* `flag` {string} See [support of file system `flags`][]. **Default:** `'w'`.
62576257
* `flush` {boolean} If all data is successfully written to the file, and
62586258
`flush` is `true`, `fs.fsyncSync()` is used to flush the data.
6259-
Returns `undefined`.
6259+
6260+
Returns `undefined`.
62606261
62616262
The `mode` option only affects the newly created file. See [`fs.open()`][]
62626263
for more details.

0 commit comments

Comments
 (0)