Skip to content

Commit

Permalink
doc: fix buffer[index] example
Browse files Browse the repository at this point in the history
PR-URL: #5253
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
  • Loading branch information
chinedufn authored and Myles Borins committed Feb 22, 2016
1 parent 7765f99 commit 6c27c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/buffer.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ for (var i = 0; i < str.length ; i++) {
buf[i] = str.charCodeAt(i);
}

console.log(buf);
console.log(buf.toString('ascii'));
// Prints: Node.js
```

Expand Down

0 comments on commit 6c27c78

Please sign in to comment.