Skip to content
Permalink
Browse files

doc: fix incorrect references in buffer docs

PR-URL: #6194
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
  • Loading branch information...
Amery2010 authored and MylesBorins committed Apr 14, 2016
1 parent 43ce6fc commit 46ee7bb4ba5376b16304b7d21d902670591227ad
Showing with 4 additions and 4 deletions.
  1. +4 −4 doc/api/buffer.markdown
@@ -799,8 +799,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.
@@ -832,8 +832,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.

0 comments on commit 46ee7bb

Please sign in to comment.
You can’t perform that action at this time.