projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ddbbfd
)
doc: fix spelling in Buffer documentation
author
Rod Machen
<mail@rodmachen.com>
Tue, 6 Oct 2015 22:27:45 +0000
(17:27 -0500)
committer
James M Snell
<jasnell@gmail.com>
Thu, 8 Oct 2015 03:39:17 +0000
(20:39 -0700)
Change b.writeUint16LE(0x90ab, 0) to b.writeUInt16LE(0x90ab, 0).
PR-URL: https://github.com/nodejs/node/pull/3226
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
doc/api/buffer.markdown
patch
|
blob
|
history
diff --git
a/doc/api/buffer.markdown
b/doc/api/buffer.markdown
index 80941cb466bf36a6b75f1cd4c78bce231eb243bb..22faef5563cb0631f54ac78ce3ecd9d72fd9ff80 100644
(file)
--- a/
doc/api/buffer.markdown
+++ b/
doc/api/buffer.markdown
@@
-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.writeU
i
nt16LE(0x90ab, 0);
+ b.writeU
I
nt16LE(0x90ab, 0);
b.writeUInt32LE(0x12345678, 2);
b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits)
// output: '1234567890ab'