From 73ef1bd423ac36d28e4abff47727142ad239796d 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 8726ed8c7f..2f9a84e5d6 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')}`); }); ```