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

fix a typo in Buffer example code #6361

Closed
wants to merge 1 commit into from
Closed

Conversation

c0b
Copy link
Contributor

@c0b c0b commented Apr 24, 2016

Checklist
  • documentation is changed or added
  • the commit message follows commit guidelines
Description of change

it shows Buffer(.from[1, 2, 3]); but that doesn't run; should be a typo

  1. https://nodejs.org/api/buffer.html#buffer_buffers_and_es6_iteration
  2. https://nodejs.org/dist/latest-v5.x/docs/api/buffer.html#buffer_buffers_and_es6_iteration

resolve comment in c1534e7#commitcomment-17228215; verified the same doc in master 85ab4a5 is correct.

@MylesBorins
Copy link
Contributor

LGTM

@MylesBorins MylesBorins added the doc Issues and PRs related to the documentations. label Apr 24, 2016
@mscdex mscdex added the buffer Issues and PRs related to the buffer subsystem. label Apr 24, 2016
@Fishrock123
Copy link
Contributor

@c0b Mind editing your commit to include the subsystem of buffer: at the start of the commit message, as outlined in our contributing guide?

Note: this may get landed with that amended by us, but please keep it in mind for the future! :)

it shows `Buffer(.from[1, 2, 3]);` but that doesn't run; should be a typo

https://nodejs.org/dist/latest-v5.x/docs/api/buffer.html#buffer_buffers_and_es6_iteration

resolve comment in nodejs@c1534e7#commitcomment-17228215 the same doc in master 85ab4a5 is correct.
@c0b
Copy link
Contributor Author

c0b commented Apr 24, 2016

sure; was reading online and editing thru github web interface; now should be done

@mscdex
Copy link
Contributor

mscdex commented Apr 24, 2016

Commit message lines are a tad too long, but other than that LGTM

@cjihrig
Copy link
Contributor

cjihrig commented Apr 25, 2016

LGTM

1 similar comment
@jasnell
Copy link
Member

jasnell commented Apr 25, 2016

LGTM

claudiorodriguez pushed a commit that referenced this pull request Apr 26, 2016
fixes `Buffer(.from[1, 2, 3])` into `Buffer.from(...)` (v5.x only)

https://nodejs.org/dist/latest-v5.x/docs/api/buffer.html

Commented in:
c1534e7#commitcomment-17228215

PR-URL: #6361
Reviewed-By: Myles Borins <myles.borins@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
@claudiorodriguez
Copy link
Contributor

Landed in 9992048 into v.5x

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