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:
parent
a628ddaf9e
commit
724a233026
@ -6256,7 +6256,8 @@ changes:
|
|||||||
* `flag` {string} See [support of file system `flags`][]. **Default:** `'w'`.
|
* `flag` {string} See [support of file system `flags`][]. **Default:** `'w'`.
|
||||||
* `flush` {boolean} If all data is successfully written to the file, and
|
* `flush` {boolean} If all data is successfully written to the file, and
|
||||||
`flush` is `true`, `fs.fsyncSync()` is used to flush the data.
|
`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()`][]
|
The `mode` option only affects the newly created file. See [`fs.open()`][]
|
||||||
for more details.
|
for more details.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user