From 8bc1f66e36811fcf3eadf76b6d9ce7dcabfb6317 Mon Sep 17 00:00:00 2001 From: Pranshu Srivastava Date: Sat, 6 Jun 2020 10:49:21 +0530 Subject: [PATCH] doc: specify default encoding in writable.write Refs: https://github.com/nodejs/node/issues/33715 PR-URL: https://github.com/nodejs/node/pull/33765 Reviewed-By: Luigi Pinca Reviewed-By: Rich Trott Reviewed-By: Trivikram Kamat Reviewed-By: James M Snell --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 534294299cd39b..e5e8ff88a17c7b 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -590,7 +590,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} The encoding, if `chunk` is a string +* `encoding` {string} 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