Skip to content

Commit 36c20d9

Browse files
dev-scriptdanielleadams
authored andcommitted
doc,stream: write(chunk, encoding, cb) encoding can be null
In stream write encoding can be null. Fixes: #33715 PR-URL: #35372 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent 11f5924 commit 36c20d9

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

0 commit comments

Comments
 (0)