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: #5240
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
  • Loading branch information
MrOutput authored and rvagg committed Feb 18, 2016
1 parent fa04daa commit 73ef1bd
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 @@ -1230,8 +1230,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 73ef1bd

Please sign in to comment.