diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 8726ed8c7fe211..2f9a84e5d65c45 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -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')}`); }); ```