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 MylesBorins committed Mar 9, 2017
1 parent b36c315 commit e94abae
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 @@ -1124,7 +1124,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 e94abae

Please sign in to comment.