From: Rafael Cepeda Date: Mon, 15 Feb 2016 15:49:00 +0000 (-0600) Subject: doc: fix template string X-Git-Tag: v4.4.0~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9d1f102801e1527b07e515d5575cb972536c6755;p=platform%2Fupstream%2Fnodejs.git 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 --- 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')}`); }); ```