Skip to content

Commit c0d9b1c

Browse files
vhmthMylesBorins
authored andcommitted
doc: fix string interpolation in Stream 'finish'
PR-URL: #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 f4dd304 commit c0d9b1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
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)