From 6bc3bde47ec30c9a6e463d2631da16d00d080b2a Mon Sep 17 00:00:00 2001 From: Amery Date: Thu, 14 Apr 2016 11:46:09 +0800 Subject: [PATCH] doc: fix incorrect references in buffer docs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/6194 Reviewed-By: Colin Ihrig Reviewed-By: Brian White Reviewed-By: Michaƫl Zasso --- doc/api/buffer.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/buffer.markdown b/doc/api/buffer.markdown index a5251fe7ee3be8..66ed4fc78e02cb 100644 --- a/doc/api/buffer.markdown +++ b/doc/api/buffer.markdown @@ -1114,8 +1114,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. @@ -1147,8 +1147,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.