Skip to content

Commit 7765f99

Browse files
MrOutputMyles Borins
authored andcommitted
doc: fix template string
Template string was syntactically incorrect. Copied Documentation code would throw an error. PR-URL: #5240 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent d15ef20 commit 7765f99

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

doc/api/crypto.markdown

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,8 +1230,7 @@ If an error occurs, `err` will be an Error object; otherwise it is null. The
12301230
const crypto = require('crypto');
12311231
crypto.randomBytes(256, (err, buf) => {
12321232
if (err) throw err;
1233-
console.log(
1234-
`${buf.length}` bytes of random data: ${buf.toString('hex')});
1233+
console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`);
12351234
});
12361235
```
12371236

0 commit comments

Comments
 (0)