Skip to content

Commit 4995a81

Browse files
vsemozhetbytMylesBorins
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 6d3c2d6 commit 4995a81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,7 @@ added: v6.0.0
12261226

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

0 commit comments

Comments
 (0)