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 rvagg committed Feb 18, 2016
1 parent 73ef1bd commit a6e437c
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 a6e437c

Please sign in to comment.