diff options
author | Aku Kotkavuo <aku@hibana.net> | 2011-07-27 07:16:50 +0400 |
---|---|---|
committer | koichik <koichik@improvement.jp> | 2011-07-27 18:12:17 +0400 |
commit | 562bef5ff3e04701098f180177d26634f5bcd003 (patch) | |
tree | 543139ae05425efc68f94f218fc17c2df908c0dd /doc | |
parent | 83b82f900faa0c1ecb1adb9fcfe31936ce51fa41 (diff) |
Add missing parentheses in buffer docs.
Fixes #1405.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/buffers.markdown | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/api/buffers.markdown b/doc/api/buffers.markdown index 2183e006ddb..27ccdfda0c5 100644 --- a/doc/api/buffers.markdown +++ b/doc/api/buffers.markdown @@ -188,8 +188,8 @@ Example: buf[3] = 0x42; for (ii = 0; ii < buf.length; ii++) { - console.log(buf.readUInt8(ii, 'big'); - console.log(buf.readUInt8(ii, 'little'); + console.log(buf.readUInt8(ii, 'big')); + console.log(buf.readUInt8(ii, 'little')); } // 0x3 @@ -216,12 +216,12 @@ Example: buf[2] = 0x23; buf[3] = 0x42; - console.log(buf.readUInt16(0, 'big'); - console.log(buf.readUInt16(0, 'little'); - console.log(buf.readUInt16(1, 'big'); - console.log(buf.readUInt16(1, 'little'); - console.log(buf.readUInt16(2, 'big'); - console.log(buf.readUInt16(2, 'little'); + console.log(buf.readUInt16(0, 'big')); + console.log(buf.readUInt16(0, 'little')); + console.log(buf.readUInt16(1, 'big')); + console.log(buf.readUInt16(1, 'little')); + console.log(buf.readUInt16(2, 'big')); + console.log(buf.readUInt16(2, 'little')); // 0x0304 // 0x0403 @@ -245,8 +245,8 @@ Example: buf[2] = 0x23; buf[3] = 0x42; - console.log(buf.readUInt32(0, 'big'); - console.log(buf.readUInt32(0, 'little'); + console.log(buf.readUInt32(0, 'big')); + console.log(buf.readUInt32(0, 'little')); // 0x03042342 // 0x42230403 @@ -293,7 +293,7 @@ Example: buf[2] = 0x80; buf[3] = 0x3f; - console.log(buf.readFloat(0, 'little'); + console.log(buf.readFloat(0, 'little')); // 0x01 @@ -316,7 +316,7 @@ Example: buf[6] = 0xd5; buf[7] = 0x3f; - console.log(buf.readDouble(0, 'little'); + console.log(buf.readDouble(0, 'little')); // 0.3333333333333333 |