Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
doc: fix doc for Buffer.readInt32LE()
Update example and signature for readInt32LE method.
  • Loading branch information
ghaiklor committed Mar 24, 2016
commit fd6367a36bdfba66c5f075f74c0c2d1d83d13459
4 changes: 2 additions & 2 deletions doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -1049,7 +1049,7 @@ buf.readInt16LE(1);
### buf.readInt32BE(offset[, noAssert])
### buf.readInt32LE(offset[, noAssert])

* `offset` {Number} `0 <= offset <= buf.length - 4`
* `offset` {Number} `0 <= offset < buf.length - 4`
* `noAssert` {Boolean} Default: false
* Return: {Number}

Expand All @@ -1067,7 +1067,7 @@ const buf = Buffer.from([1,-2,3,4]);

buf.readInt32BE();
// returns 33424132
buf.readInt32LE(1);
buf.readInt32LE();
// returns 67370497
```

Expand Down