Skip to content

Commit 76fe2a9

Browse files
rexagodcodebytere
authored andcommitted
doc: specify default encoding in writable.write
Refs: #33715 PR-URL: #33765 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent eb01214 commit 76fe2a9

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
@@ -590,7 +590,7 @@ changes:
590590
not operating in object mode, `chunk` must be a string, `Buffer` or
591591
`Uint8Array`. For object mode streams, `chunk` may be any JavaScript value
592592
other than `null`.
593-
* `encoding` {string} The encoding, if `chunk` is a string
593+
* `encoding` {string} The encoding, if `chunk` is a string. **Default:** `'utf8'`
594594
* `callback` {Function} Callback for when this chunk of data is flushed
595595
* Returns: {boolean} `false` if the stream wishes for the calling code to
596596
wait for the `'drain'` event to be emitted before continuing to write

0 commit comments

Comments
 (0)