Skip to content

Commit ed31bde

Browse files
committed
stream: write(chunk, encoding, cb) encoding can be null
rebase master branch & resolve conflicts in stream.md file Fixes: nodejs#33715
1 parent bff7de3 commit ed31bde

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

0 commit comments

Comments
 (0)