We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d3c2d6 commit 4995a81Copy full SHA for 4995a81
doc/api/buffer.md
@@ -1226,7 +1226,7 @@ added: v6.0.0
1226
1227
* `value` {String | Buffer | Integer} What to search for
1228
* `byteOffset` {Integer} Where to begin searching in `buf`.
1229
- **Default:** [`buf.length`]
+ **Default:** [`buf.length`]` - 1`
1230
* `encoding` {String} If `value` is a string, this is its encoding.
1231
**Default:** `'utf8'`
1232
* Returns: {Integer} The index of the last occurrence of `value` in `buf` or `-1`
0 commit comments