-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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: add print results for examples in StringDecoder
#49326
doc: add print results for examples in StringDecoder
#49326
Conversation
@@ -41,7 +41,7 @@ const decoder = new StringDecoder('utf8'); | |||
|
|||
decoder.write(Buffer.from([0xE2])); | |||
decoder.write(Buffer.from([0x82])); | |||
console.log(decoder.end(Buffer.from([0xAC]))); | |||
console.log(decoder.end(Buffer.from([0xAC]))); // Prints: € |
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.
Isn't this already implied by the text preceding this code block?
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 It's implied, but I thought it would be nice to show the result. won't it be needed?
Landed in b9153af |
PR-URL: nodejs#49326 Refs: nodejs#49143 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: nodejs/node#49326 Refs: nodejs/node#49143 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
PR-URL: nodejs/node#49326 Refs: nodejs/node#49143 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Deokjin Kim <deokjin81.kim@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
As with the other examples, I added result about the output.
Refs: #49143