doc: fix spelling in Buffer documentation

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>
pull/3226/merge
Rod Machen 2015-10-06 17:27:45 -05:00 committed by Evan Lucas
parent 184f09dbe4
commit 20b68e5b42
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ A generalized version of all numeric read methods. Supports up to 48 bits of
accuracy. For example: accuracy. For example:
var b = new Buffer(6); var b = new Buffer(6);
b.writeUint16LE(0x90ab, 0); b.writeUInt16LE(0x90ab, 0);
b.writeUInt32LE(0x12345678, 2); b.writeUInt32LE(0x12345678, 2);
b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits) b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits)
// output: '1234567890ab' // output: '1234567890ab'