Skip to content
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: fix buffer[index] example #5253

Closed
wants to merge 2 commits into from
Closed

doc: fix buffer[index] example #5253

wants to merge 2 commits into from

Conversation

chinedufn
Copy link
Contributor

No description provided.

@mscdex mscdex added buffer Issues and PRs related to the buffer subsystem. doc Issues and PRs related to the documentations. labels Feb 16, 2016
@thefourtheye
Copy link
Contributor

LGTM cc @trevnorris

@@ -351,7 +351,7 @@ for (var i = 0; i < str.length ; i++) {
buf[i] = str.charCodeAt(i);
}

console.log(buf);
console.log(buf.toString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The example states it is an ASCII string. I would be explicit and write buf.toString('ascii').

@targos
Copy link
Member

targos commented Feb 16, 2016

LGTM with a suggestion

@chinedufn
Copy link
Contributor Author

@targos thanks for the suggestion! Pushed

@jasnell
Copy link
Member

jasnell commented Feb 16, 2016

LGTM

@silverwind
Copy link
Contributor

Thanks! Landed in 069072c.

silverwind pushed a commit that referenced this pull request Feb 18, 2016
PR-URL: #5253
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
@silverwind silverwind closed this Feb 18, 2016
rvagg pushed a commit that referenced this pull request Feb 18, 2016
PR-URL: #5253
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 22, 2016
PR-URL: #5253
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
MylesBorins pushed a commit that referenced this pull request Feb 22, 2016
PR-URL: #5253
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
MylesBorins pushed a commit that referenced this pull request Mar 2, 2016
PR-URL: #5253
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
buffer Issues and PRs related to the buffer subsystem. doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants