Skip to content

Commit 75de258

Browse files
rodmachenjasnell
authored andcommitted
doc: fix spelling in Buffer documentation
Change b.writeUint16LE(0x90ab, 0) to b.writeUInt16LE(0x90ab, 0). PR-URL: #3226 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Evan Lucas <[email protected]>
1 parent 2ddbbfd commit 75de258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ A generalized version of all numeric read methods. Supports up to 48 bits of
232232
accuracy. For example:
233233

234234
var b = new Buffer(6);
235-
b.writeUint16LE(0x90ab, 0);
235+
b.writeUInt16LE(0x90ab, 0);
236236
b.writeUInt32LE(0x12345678, 2);
237237
b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits)
238238
// output: '1234567890ab'

0 commit comments

Comments
 (0)