Skip to content

Commit

Permalink
fixup! doc: modify param decription for end(),write() in StringDecoder
Browse files Browse the repository at this point in the history
  • Loading branch information
pluris committed Aug 22, 2023
1 parent 650ea3b commit 13c02ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/string_decoder.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ Creates a new `StringDecoder` instance.
added: v0.9.3
-->

* `buffer` {string|Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or
`DataView` containing the bytes to decode.
* `buffer` {string|Buffer|TypedArray|DataView} `string`, or A `Buffer`, or
`TypedArray`, or `DataView` containing the bytes to decode.
* Returns: {string}

Returns any remaining input stored in the internal buffer as a string. Bytes
Expand All @@ -86,8 +86,8 @@ changes:
character instead of one for each individual byte.
-->

* `buffer` {string|Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or
`DataView` containing the bytes to decode.
* `buffer` {string|Buffer|TypedArray|DataView} `string`, or A `Buffer`, or
`TypedArray`, or `DataView` containing the bytes to decode.
* Returns: {string}

Returns a decoded string, ensuring that any incomplete multibyte characters at
Expand Down

0 comments on commit 13c02ac

Please sign in to comment.