Skip to content

Commit 9e47b94

Browse files
vsemozhetbytaddaleax
authored andcommitted
doc: fix a syntax error in the buffer.md
PR-URL: #9795 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Anna Henningsen <anna@addaleax.net>
1 parent 1864222 commit 9e47b94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/buffer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1122,7 +1122,7 @@ Examples:
11221122
const buf = Buffer.from('this is a buffer');
11231123

11241124
// Prints: 0
1125-
console.log(buf.indexOf('this')));
1125+
console.log(buf.indexOf('this'));
11261126

11271127
// Prints: 2
11281128
console.log(buf.indexOf('is'));

0 commit comments

Comments
 (0)