doc: fix a wrong note in the buffer.md
PR-URL: https://github.com/nodejs/node/pull/9795 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
parent
dede04c686
commit
898c25aa64
@ -1224,7 +1224,7 @@ added: v6.0.0
|
||||
|
||||
* `value` {String | Buffer | Integer} What to search for
|
||||
* `byteOffset` {Integer} Where to begin searching in `buf`.
|
||||
**Default:** [`buf.length`]
|
||||
**Default:** [`buf.length`]` - 1`
|
||||
* `encoding` {String} If `value` is a string, this is its encoding.
|
||||
**Default:** `'utf8'`
|
||||
* Returns: {Integer} The index of the last occurrence of `value` in `buf` or `-1`
|
||||
|
Loading…
x
Reference in New Issue
Block a user