Skip to content

Commit

Permalink
doc: fix incorrect references in buffer docs
Browse files Browse the repository at this point in the history
PR-URL: #6194
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Brian White <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
  • Loading branch information
Amery2010 authored and MylesBorins committed Apr 21, 2016
1 parent f69416c commit 6bc3bde
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 6bc3bde

Please sign in to comment.