From 9ca85b58b301ce51579ef9ab57bad5774ca81beb Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Fri, 25 Aug 2023 01:00:28 +0900 Subject: [PATCH] doc: modify param description for end(),write() in `StringDecoder` PR-URL: https://github.com/nodejs/node/pull/49285 Reviewed-By: Luigi Pinca Reviewed-By: Deokjin Kim --- doc/api/string_decoder.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/api/string_decoder.md b/doc/api/string_decoder.md index 70387d2edba696..4913b26cec042f 100644 --- a/doc/api/string_decoder.md +++ b/doc/api/string_decoder.md @@ -63,8 +63,7 @@ Creates a new `StringDecoder` instance. added: v0.9.3 --> -* `buffer` {Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or - `DataView` containing the bytes to decode. +* `buffer` {string|Buffer|TypedArray|DataView} The bytes to decode. * Returns: {string} Returns any remaining input stored in the internal buffer as a string. Bytes @@ -86,8 +85,7 @@ changes: character instead of one for each individual byte. --> -* `buffer` {Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or - `DataView` containing the bytes to decode. +* `buffer` {string|Buffer|TypedArray|DataView} The bytes to decode. * Returns: {string} Returns a decoded string, ensuring that any incomplete multibyte characters at