Skip to content

Commit

Permalink
doc: fix spelling in Buffer documentation
Browse files Browse the repository at this point in the history
Change b.writeUint16LE(0x90ab, 0) to b.writeUInt16LE(0x90ab, 0).

PR-URL: #3226
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
  • Loading branch information
rodmachen authored and evanlucas committed Oct 7, 2015
1 parent 184f09d commit 20b68e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ A generalized version of all numeric read methods. Supports up to 48 bits of
accuracy. For example:

var b = new Buffer(6);
b.writeUint16LE(0x90ab, 0);
b.writeUInt16LE(0x90ab, 0);
b.writeUInt32LE(0x12345678, 2);
b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits)
// output: '1234567890ab'
Expand Down

2 comments on commit 20b68e5

@Fishrock123
Copy link
Contributor

Choose a reason for hiding this comment

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

@rodmachen heya, just so you know, your git signing email is not listed on github. You may want to add it to link commits properly, even if you don't have it publicly listed. :)

@rodmachen
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Fishrock123 Thanks for the feedback. I think I've got it fixed.

Please sign in to comment.