Skip to content

Commit dd80a33

Browse files
vhmthandrew749
authored andcommitted
doc: fix string interpolation in Stream 'finish'
PR-URL: nodejs/node#12221 Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 9ad4627 commit dd80a33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ has been called, and all data has been flushed to the underlying system.
281281
```js
282282
const writer = getWritableStreamSomehow();
283283
for (var i = 0; i < 100; i ++) {
284-
writer.write('hello, #${i}!\n');
284+
writer.write(`hello, #${i}!\n`);
285285
}
286286
writer.end('This is the end\n');
287287
writer.on('finish', () => {

0 commit comments

Comments
 (0)