Browse Source

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>
v5.x
Chinedu Francis Nwafili 9 years ago
committed by Rod Vagg
parent
commit
a6e437c619
  1. 2
      doc/api/buffer.markdown

2
doc/api/buffer.markdown

@ -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
```

Loading…
Cancel
Save