doc: modify param description for end(),write() in StringDecoder#49285
doc: modify param description for end(),write() in StringDecoder#49285nodejs-github-bot merged 1 commit intonodejs:mainfrom
StringDecoder#49285Conversation
doc/api/string_decoder.md
Outdated
| --> | ||
|
|
||
| * `buffer` {Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or | ||
| * `buffer` {string|Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or |
There was a problem hiding this comment.
The parameter description that follows also needs updating.
There was a problem hiding this comment.
@mscdex Thank you for your comment. I updated it.
doc/api/string_decoder.md
Outdated
| --> | ||
|
|
||
| * `buffer` {Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or | ||
| * `buffer` {string|Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or |
13c02ac to
9ab677c
Compare
|
Typo in commit message, |
StringDecoderStringDecoder
|
@VoltrexKeyva Hi, Thank you. I fixed it. |
doc/api/string_decoder.md
Outdated
|
|
||
| * `buffer` {Buffer|TypedArray|DataView} A `Buffer`, or `TypedArray`, or | ||
| `DataView` containing the bytes to decode. | ||
| * `buffer` {string|Buffer|TypedArray|DataView} A `string`, or `Buffer`, or |
There was a problem hiding this comment.
Perhaps we can just shorten these descriptions down to simply:
The bytes to decode.
as duplicating the types is unnecessary
There was a problem hiding this comment.
That's a great comment! I also wanted to briefly explain the types.
@pluris First commit(not PR)'s typo(decription -> description) is not fixed yet. Could you fix typo after squashing 3 commits to 1? |
ab493a8 to
0eca1b7
Compare
|
@deokjinkim Hi. I guess I misunderstood the comment. I'll edit the message as I change the commits to 1. 😓 |
|
Landed in a494ef6 |
PR-URL: #49285 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
PR-URL: nodejs#49285 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
PR-URL: #49285 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
PR-URL: nodejs/node#49285 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
PR-URL: nodejs/node#49285 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com>
According to the following js code,
stringis also included in possible arguments.Therefore, it seems that the
stringis missing in the API description, so I added it.node/lib/string_decoder.js
Lines 91 to 95 in 62b2cf3
node/lib/string_decoder.js
Lines 112 to 115 in 62b2cf3