diff --git a/doc/api/buffer.md b/doc/api/buffer.md index 1c10785feb3b46..a2c446dba93d1a 100644 --- a/doc/api/buffer.md +++ b/doc/api/buffer.md @@ -1122,7 +1122,7 @@ Examples: const buf = Buffer.from('this is a buffer'); // Prints: 0 -console.log(buf.indexOf('this'))); +console.log(buf.indexOf('this')); // Prints: 2 console.log(buf.indexOf('is'));