Skip to content

Commit

Permalink
doc: modify param description for end(),write() in StringDecoder
Browse files Browse the repository at this point in the history
PR-URL: #49285
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
  • Loading branch information
Jungku Lee authored and targos committed Nov 26, 2023
1 parent 075c57e commit 9ca85b5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/api/string_decoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9ca85b5

Please sign in to comment.