diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 56e4a4628ff5b5..294095dc16401b 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -1261,7 +1261,7 @@ there is a problem generating the bytes. // Synchronous const buf = crypto.randomBytes(256); console.log( - `${buf.length}` bytes of random data: ${buf.toString('hex')}); + `${buf.length} bytes of random data: ${buf.toString('hex')}`); ``` The `crypto.randomBytes()` method will block until there is sufficient entropy.