mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: fix template string
Template string was syntactically incorrect. Copied Documentation code would throw an error. PR-URL: https://github.com/nodejs/node/pull/5240 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
This commit is contained in:
1 parent
c605c5d587
commit
51bd77022b
1 file changed
+1
-2
@@ -1228,8 +1228,7 @@ If an error occurs, `err` will be an Error object; otherwise it is null. The
|
||||
const crypto = require('crypto');
|
||||
crypto.randomBytes(256, (err, buf) => {
|
||||
if (err) throw err;
|
||||
console.log(
|
||||
`${buf.length}` bytes of random data: ${buf.toString('hex')});
|
||||
console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user