summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAmery <amery@xiangfa.org>2016-04-14 11:46:09 +0800
committercjihrig <cjihrig@gmail.com>2016-04-14 08:50:23 -0400
commita432935211210bf1c92d057c455a5dd6aa5517ab (patch)
treeb11bc7b0dbbed0ef3f432a9fb90a700854d9d659 /doc
parent0b66b8f2d2c3aceba5e65c4b4ba428b7fabd3cb5 (diff)
downloadandroid-node-v8-a432935211210bf1c92d057c455a5dd6aa5517ab.tar.gz
android-node-v8-a432935211210bf1c92d057c455a5dd6aa5517ab.tar.bz2
android-node-v8-a432935211210bf1c92d057c455a5dd6aa5517ab.zip
doc: fix incorrect references in buffer docs
PR-URL: https://github.com/nodejs/node/pull/6194 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/buffer.markdown8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown
index c1779b0d31..ac5fab2191 100644
--- a/doc/api/buffer.markdown
+++ b/doc/api/buffer.markdown
@@ -1159,8 +1159,8 @@ buf.readUInt8(1);
* Return: {Number}
Reads an unsigned 16-bit integer from the Buffer at the specified `offset` with
-specified endian format (`readInt32BE()` returns big endian,
-`readInt32LE()` returns little endian).
+specified endian format (`readUInt16BE()` returns big endian,
+`readUInt16LE()` returns little endian).
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
`offset` to be beyond the end of the Buffer.
@@ -1192,8 +1192,8 @@ buf.readUInt16LE(2);
* Return: {Number}
Reads an unsigned 32-bit integer from the Buffer at the specified `offset` with
-specified endian format (`readInt32BE()` returns big endian,
-`readInt32LE()` returns little endian).
+specified endian format (`readUInt32BE()` returns big endian,
+`readUInt32LE()` returns little endian).
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
`offset` to be beyond the end of the Buffer.