Skip to content

Commit 46ee7bb

Browse files
Amery2010Myles Borins
authored and
Myles Borins
committed
doc: fix incorrect references in buffer docs
PR-URL: #6194 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 43ce6fc commit 46ee7bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/buffer.markdown

+4-4
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,8 @@ buf.readUInt8(1);
799799
* Return: {Number}
800800

801801
Reads an unsigned 16-bit integer from the Buffer at the specified `offset` with
802-
specified endian format (`readInt32BE()` returns big endian,
803-
`readInt32LE()` returns little endian).
802+
specified endian format (`readUInt16BE()` returns big endian,
803+
`readUInt16LE()` returns little endian).
804804

805805
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
806806
`offset` to be beyond the end of the Buffer.
@@ -832,8 +832,8 @@ buf.readUInt16LE(2);
832832
* Return: {Number}
833833

834834
Reads an unsigned 32-bit integer from the Buffer at the specified `offset` with
835-
specified endian format (`readInt32BE()` returns big endian,
836-
`readInt32LE()` returns little endian).
835+
specified endian format (`readUInt32BE()` returns big endian,
836+
`readUInt32LE()` returns little endian).
837837

838838
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
839839
`offset` to be beyond the end of the Buffer.

0 commit comments

Comments
 (0)