-
Notifications
You must be signed in to change notification settings - Fork 30k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
doc: modify param description for end(),write() in StringDecoder
#49285
doc: modify param description for end(),write() in StringDecoder
#49285
Conversation
doc/api/string_decoder.md
Outdated
@@ -63,7 +63,7 @@ Creates a new `StringDecoder` instance. | |||
added: v0.9.3 | |||
--> | |||
|
|||
* `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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parameter description that follows also needs updating.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mscdex Thank you for your comment. I updated it.
doc/api/string_decoder.md
Outdated
@@ -86,7 +86,7 @@ changes: | |||
character instead of one for each individual byte. | |||
--> | |||
|
|||
* `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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto
13c02ac
to
9ab677c
Compare
Typo in commit message, |
StringDecoder
StringDecoder
@VoltrexKeyva Hi, Thank you. I fixed it. |
doc/api/string_decoder.md
Outdated
@@ -63,8 +63,8 @@ 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} A `string`, or `Buffer`, or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
PR-URL: nodejs#49285 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
PR-URL: #49285 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
PR-URL: nodejs/node#49285 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
PR-URL: nodejs/node#49285 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Deokjin Kim <[email protected]>
According to the following js code,
string
is also included in possible arguments.Therefore, it seems that the
string
is 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