Skip to content

Commit e8940d0

Browse files
juanarbolBridgeAR
authored andcommitted
doc: fs.write is not longer coercing strings
1 parent 385a479 commit e8940d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/fs.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -3979,7 +3979,7 @@ changes:
39793979
* `string` {string}
39803980

39813981
Write `string` to the file specified by `fd`. If `string` is not a string, then
3982-
the value will be coerced to one.
3982+
an exception will be thrown.
39833983

39843984
`position` refers to the offset from the beginning of the file where this data
39853985
should be written. If `typeof position !== 'number'` the data will be written at
@@ -4045,7 +4045,7 @@ changes:
40454045
* `err` {Error}
40464046

40474047
When `file` is a filename, asynchronously writes data to the file, replacing the
4048-
file if it already exists. `data` can be a string or a buffer.
4048+
file if it already exists. `data` can be a string or a buffer.
40494049

40504050
When `file` is a file descriptor, the behavior is similar to calling
40514051
`fs.write()` directly (which is recommended). See the notes below on using

0 commit comments

Comments
 (0)