Skip to content

Commit

Permalink
doc: fix template string
Browse files Browse the repository at this point in the history
Template string was syntactically incorrect. Copied Documentation code
would throw an error.

PR-URL: nodejs#5240
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
  • Loading branch information
MrOutput authored and silverwind committed Feb 18, 2016
1 parent c605c5d commit 51bd770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc/api/crypto.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`);
});
```

Expand Down

0 comments on commit 51bd770

Please sign in to comment.