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 <[email protected]>
Reviewed-By: Yongsheng Zhang <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Anna Henningsen <[email protected]>
  • 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.