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');