From 9d1f102801e1527b07e515d5575cb972536c6755 Mon Sep 17 00:00:00 2001 From: Rafael Cepeda Date: Mon, 15 Feb 2016 09:49:00 -0600 Subject: [PATCH] doc: fix template string Template string was syntactically incorrect. Copied Documentation code would throw an error. PR-URL: https://github.com/nodejs/node/pull/5240 Reviewed-By: James M Snell Reviewed-By: Roman Reiss --- 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 8726ed8..2f9a84e 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')}`); }); ``` -- 2.7.4