From 1f8c6bca798794ee3a7bf1ae6ed1e1074063cdaf Mon Sep 17 00:00:00 2001 From: Rafael Cepeda Date: Mon, 15 Feb 2016 09:49:00 -0600 Subject: [PATCH] Fixed template string in Crypto Documentation Template string was syntactically incorrect. Copied Documentation code would throw an error. --- doc/api/crypto.markdown | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/api/crypto.markdown b/doc/api/crypto.markdown index 72f241b03acb19..e7da73e96386b3 100644 --- a/doc/api/crypto.markdown +++ b/doc/api/crypto.markdown @@ -1228,8 +1228,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')}`); }); ```