Skip to content

Commit

Permalink
doc: fix a syntax error in the buffer.md
Browse files Browse the repository at this point in the history
PR-URL: #9795
Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
vsemozhetbyt authored and addaleax committed Dec 8, 2016
1 parent 1864222 commit 9e47b94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand Down

0 comments on commit 9e47b94

Please sign in to comment.