Skip to content

Commit

Permalink
doc: fs.write is not longer coercing strings
Browse files Browse the repository at this point in the history
  • Loading branch information
juanarbol authored and BridgeAR committed Jan 13, 2020
1 parent 385a479 commit e8940d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -3979,7 +3979,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
Expand Down Expand Up @@ -4045,7 +4045,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
Expand Down

0 comments on commit e8940d0

Please sign in to comment.