Skip to content

Commit

Permalink
doc: fix buf.readInt16LE output
Browse files Browse the repository at this point in the history
Previous example didn't account for the 1 byte offset

PR-URL: #5282
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
  • Loading branch information
chinedufn authored and Myles Borins committed Mar 21, 2016
1 parent 1624d5b commit ba5e0b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ const buf = new Buffer([1,-2,3,4]);
buf.readInt16BE();
// returns 510
buf.readInt16LE(1);
// returns -511
// returns 1022
```

### buf.readInt32BE(offset[, noAssert])
Expand Down

0 comments on commit ba5e0b6

Please sign in to comment.