Skip to content

Commit 604625d

Browse files
Amery2010jasnell
authored andcommitted
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 4f5bb8b commit 604625d

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
@@ -1159,8 +1159,8 @@ buf.readUInt8(1);
11591159
* Return: {Number}
11601160

11611161
Reads an unsigned 16-bit integer from the Buffer at the specified `offset` with
1162-
specified endian format (`readInt32BE()` returns big endian,
1163-
`readInt32LE()` returns little endian).
1162+
specified endian format (`readUInt16BE()` returns big endian,
1163+
`readUInt16LE()` returns little endian).
11641164

11651165
Setting `noAssert` to `true` skips validation of the `offset`. This allows the
11661166
`offset` to be beyond the end of the Buffer.
@@ -1192,8 +1192,8 @@ buf.readUInt16LE(2);
11921192
* Return: {Number}
11931193

11941194
Reads an unsigned 32-bit integer from the Buffer at the specified `offset` with
1195-
specified endian format (`readInt32BE()` returns big endian,
1196-
`readInt32LE()` returns little endian).
1195+
specified endian format (`readUInt32BE()` returns big endian,
1196+
`readUInt32LE()` returns little endian).
11971197

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

0 commit comments

Comments
 (0)