GeezerVison is showing github.com — doc: fix incorrect references in buffer docs · nodejs/node@6bc3bde
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/buffer.markdown +4-4Lines changed: 4 additions & 4 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1114,8 +1114,8 @@ buf.readUInt8(1); |
1114 | 1114 | * Return: {Number} |
1115 | 1115 |
|
1116 | 1116 | Reads an unsigned 16-bit integer from the Buffer at the specified `offset` with |
1117 | | -specified endian format (`readInt32BE()` returns big endian, |
1118 | | -`readInt32LE()` returns little endian). |
| 1117 | +specified endian format (`readUInt16BE()` returns big endian, |
| 1118 | +`readUInt16LE()` returns little endian). |
1119 | 1119 |
|
1120 | 1120 | Setting `noAssert` to `true` skips validation of the `offset`. This allows the |
1121 | 1121 | `offset` to be beyond the end of the Buffer. |
@@ -1147,8 +1147,8 @@ buf.readUInt16LE(2); |
1147 | 1147 | * Return: {Number} |
1148 | 1148 |
|
1149 | 1149 | Reads an unsigned 32-bit integer from the Buffer at the specified `offset` with |
1150 | | -specified endian format (`readInt32BE()` returns big endian, |
1151 | | -`readInt32LE()` returns little endian). |
| 1150 | +specified endian format (`readUInt32BE()` returns big endian, |
| 1151 | +`readUInt32LE()` returns little endian). |
1152 | 1152 |
|
1153 | 1153 | Setting `noAssert` to `true` skips validation of the `offset`. This allows the |
1154 | 1154 | `offset` to be beyond the end of the Buffer. |
|