mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
doc: fs.write is not longer coercing strings
PR-URL: https://github.com/nodejs/node/pull/31030 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
This commit is contained in:
parent
fb6df3bfac
commit
afe353061b
@ -3985,7 +3985,7 @@ changes:
|
||||
* `string` {string}
|
||||
|
||||
Write `string` to the file specified by `fd`. If `string` is not a string, then
|
||||
the value will be coerced to one.
|
||||
an exception will be thrown.
|
||||
|
||||
`position` refers to the offset from the beginning of the file where this data
|
||||
should be written. If `typeof position !== 'number'` the data will be written at
|
||||
@ -4051,7 +4051,7 @@ changes:
|
||||
* `err` {Error}
|
||||
|
||||
When `file` is a filename, asynchronously writes data to the file, replacing the
|
||||
file if it already exists. `data` can be a string or a buffer.
|
||||
file if it already exists. `data` can be a string or a buffer.
|
||||
|
||||
When `file` is a file descriptor, the behavior is similar to calling
|
||||
`fs.write()` directly (which is recommended). See the notes below on using
|
||||
|
Loading…
Reference in New Issue
Block a user