From 4bc558a153690cad31b5b1b6fab505f880a97096 Mon Sep 17 00:00:00 2001 From: Leko Date: Sun, 26 Nov 2017 17:54:26 +0900 Subject: [PATCH] doc: replace string with template string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/17316 Reviewed-By: Vse Mozhet Byt Reviewed-By: Yosuke Furukawa Reviewed-By: Michaƫl Zasso Reviewed-By: Daijiro Wachi Reviewed-By: Gireesh Punathil Reviewed-By: Jon Moss Reviewed-By: James M Snell --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 25a218cf130728..f8d9df9e6ac3ba 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -764,7 +764,7 @@ available data. In the latter case, [`stream.read()`][stream-read] will return const fs = require('fs'); const rr = fs.createReadStream('foo.txt'); rr.on('readable', () => { - console.log('readable:', rr.read()); + console.log(`readable: ${rr.read()}`); }); rr.on('end', () => { console.log('end');