From 5ef57b57d86bbb8c43feb17ada805a60542460dc Mon Sep 17 00:00:00 2001 From: Rod Machen Date: Tue, 6 Oct 2015 17:27:45 -0500 Subject: [PATCH] Fix spelling: b.writeUint16LE(0x90ab, 0) to b.writeUInt16LE(0x90ab, 0) --- doc/api/buffer.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index 80941cb466bf36..22faef5563cb06 100644 --- 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.writeUint16LE(0x90ab, 0); + b.writeUInt16LE(0x90ab, 0); b.writeUInt32LE(0x12345678, 2); b.readUIntLE(0, 6).toString(16); // Specify 6 bytes (48 bits) // output: '1234567890ab'