Skip to content

Commit

Permalink
stream: write(chunk, encoding, cb) encoding can be null
Browse files Browse the repository at this point in the history
In stream write encoding can be null.

Fixes: nodejs#33715
  • Loading branch information
dev-habilelabs authored and dev-script committed Sep 12, 2020
1 parent 454beb5 commit a2d155a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ changes:
not operating in object mode, `chunk` must be a string, `Buffer` or
`Uint8Array`. For object mode streams, `chunk` may be any JavaScript value
other than `null`.
* `encoding` {string|null} The encoding, if `chunk` is a string. **Default:** `'utf8'`
* `encoding` {string|null} The encoding,if `chunk` is a string. **Default:** `'utf8'`
* `callback` {Function} Callback for when this chunk of data is flushed
* Returns: {boolean} `false` if the stream wishes for the calling code to
wait for the `'drain'` event to be emitted before continuing to write
Expand Down

0 comments on commit a2d155a

Please sign in to comment.