From bc64a634404478893f2c9183f2f3432bb133bc0e 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 5ae03e45b69cac..51a59d91bdc011 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`