Skip to content

Commit

Permalink
doc: fix typo in pipe from async iterator example
Browse files Browse the repository at this point in the history
PR-URL: #27870
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
  • Loading branch information
lpinca committed May 29, 2019
1 parent 12f5e0f commit eb4c1d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Expand Up @@ -2487,7 +2487,7 @@ const writeable = fs.createWriteStream('./file');
(async function() {
for await (const chunk of iterator) {
// Handle backpressure on write
if (!writeable.write(value))
if (!writeable.write(chunk))
await once(writeable, 'drain');
}
writeable.end();
Expand Down

0 comments on commit eb4c1d5

Please sign in to comment.