Skip to content

Commit a2d155a

Browse files
dev-habilelabsdev-script
authored andcommitted
stream: write(chunk, encoding, cb) encoding can be null
In stream write encoding can be null. Fixes: nodejs#33715
1 parent 454beb5 commit a2d155a

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

0 commit comments

Comments
 (0)