diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 3d7d896d0ae709..de51bb67f92f22 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -1243,7 +1243,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.