Commit 6e2bfbe
doc: fix doc for Buffer.readInt32LE()
Update example of readInt32LE method. buf.readInt32LE(1) is supposed to
throw an error as it has only four elements and it tries to read 32
bits from three bytes.
Fixes: #5889
PR-URL: #5890
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>1 parent d275cdf commit 6e2bfbeCopy full SHA for 6e2bfbe
File tree
Expand file treeCollapse file tree
1 file changed
+3
-1
lines changedOpen diff view settings
Filter options
- doc/api
Expand file treeCollapse file tree
1 file changed
+3
-1
lines changedOpen diff view settings
Collapse file
+3-1Lines changed: 3 additions & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
739 | 739 | |
740 | 740 | |
741 | 741 | |
742 | | - |
| 742 | + |
743 | 743 | |
| 744 | + |
| 745 | + |
744 | 746 | |
745 | 747 | |
746 | 748 | |
|
0 commit comments