doc: fix buffer[index] example

PR-URL: https://github.com/nodejs/node/pull/5253
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
Chinedu Francis Nwafili authored and Myles Borins committed 2016-03-02 14:01:11 -08:00
1 parent 9d1f102801
commit 59e55ae041
1 file changed
+1 -1
+1 -1
View File
@@ -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
```