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 authored and targos committed May 31, 2019
1 parent 67b692b commit b7cd0de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
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 b7cd0de

Please sign in to comment.