mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
doc: fix a syntax error in the buffer.md
PR-URL: https://github.com/nodejs/node/pull/9795 Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
b36c315423
commit
e94abaec1c
1 file changed
+1
-1
+1
-1
@@ -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'));
|
||||
|
||||
Reference in new issue
Block a user