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>
process-exit-stdio-flushing
Chinedu Francis Nwafili 9 years ago
committed by Roman Reiss
parent
commit
069072c4bf
  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