diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 3a6a048417..9b3f3f8b4b 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1340,6 +1340,10 @@ console.log(b.indexOf('b', null)); console.log(b.indexOf('b', [])); ``` +If `value` is an empty string or empty `Buffer` and `byteOffset` is less +than `buf.length`, `byteOffset` will be returned. If `value` is empty and +`byteOffset` is at least `buf.length`, `buf.length` will be returned. + ### buf.keys()