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:
Vse Mozhet Byt 2016-12-04 14:09:07 +02:00 committed by Anna Henningsen
parent dede04c686
commit 898c25aa64
No known key found for this signature in database
GPG Key ID: D8B9F5AEAE84E4CF

View File

@ -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`