Skip to content

Commit bc64a63

Browse files
vsemozhetbytaddaleax
authored andcommitted
doc: fix a wrong note in the buffer.md
PR-URL: #9795 Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent d4c73d4 commit bc64a63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ added: v6.0.0
12241224

12251225
* `value` {String | Buffer | Integer} What to search for
12261226
* `byteOffset` {Integer} Where to begin searching in `buf`.
1227-
**Default:** [`buf.length`]
1227+
**Default:** [`buf.length`]` - 1`
12281228
* `encoding` {String} If `value` is a string, this is its encoding.
12291229
**Default:** `'utf8'`
12301230
* Returns: {Integer} The index of the last occurrence of `value` in `buf` or `-1`

0 commit comments

Comments
 (0)