Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3789c28

Browse files
rexagodcodebytere
authored andcommittedJul 10, 2020
doc: specify default encoding in writable.write
Refs: #33715 PR-URL: #33765 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 578e731 commit 3789c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ changes:
576576
not operating in object mode, `chunk` must be a string, `Buffer` or
577577
`Uint8Array`. For object mode streams, `chunk` may be any JavaScript value
578578
other than `null`.
579-
* `encoding` {string} The encoding, if `chunk` is a string
579+
* `encoding` {string} The encoding, if `chunk` is a string. **Default:** `'utf8'`
580580
* `callback` {Function} Callback for when this chunk of data is flushed
581581
* Returns: {boolean} `false` if the stream wishes for the calling code to
582582
wait for the `'drain'` event to be emitted before continuing to write

0 commit comments

Comments
 (0)
Please sign in to comment.