Browse Source

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>
v6.x
Vse Mozhet Byt 8 years ago
committed by Myles Borins
parent
commit
4995a819e0
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 2
      doc/api/buffer.md

2
doc/api/buffer.md

@ -1226,7 +1226,7 @@ added: v6.0.0
* `value` {String | Buffer | Integer} What to search for * `value` {String | Buffer | Integer} What to search for
* `byteOffset` {Integer} Where to begin searching in `buf`. * `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. * `encoding` {String} If `value` is a string, this is its encoding.
**Default:** `'utf8'` **Default:** `'utf8'`
* Returns: {Integer} The index of the last occurrence of `value` in `buf` or `-1` * Returns: {Integer} The index of the last occurrence of `value` in `buf` or `-1`

Loading…
Cancel
Save