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