Skip to content

Commit

Permalink
doc: specify default encoding in writable.write
Browse files Browse the repository at this point in the history
  • Loading branch information
rexagod committed Jun 6, 2020
1 parent 3ac50e1 commit 4b9c32a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,8 @@ changes:
not operating in object mode, `chunk` must be a string, `Buffer` or
`Uint8Array`. For object mode streams, `chunk` may be any JavaScript value
other than `null`.
* `encoding` {string} The encoding, if `chunk` is a string
* `encoding` {string} The encoding, if `chunk` is a string. Defaults to `utf8`
if a falsey value is passed.
* `callback` {Function} Callback for when this chunk of data is flushed
* Returns: {boolean} `false` if the stream wishes for the calling code to
wait for the `'drain'` event to be emitted before continuing to write
Expand Down

0 comments on commit 4b9c32a

Please sign in to comment.