From 898c25aa649733dae3dd9c35399be9b83a9dc2c7 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Sun, 4 Dec 2016 14:09:07 +0200 Subject: [PATCH] doc: fix a wrong note in the buffer.md PR-URL: https://github.com/nodejs/node/pull/9795 Reviewed-By: Sam Roberts Reviewed-By: Roman Reiss Reviewed-By: Anna Henningsen --- doc/api/buffer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 57d494818e..016aa4ed8c 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -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`