Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b7cd0de

Browse filesBrowse files
lpincatargos
authored andcommitted
doc: fix typo in pipe from async iterator example
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>
1 parent 67b692b commit b7cd0de
Copy full SHA for b7cd0de

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2487,7 +2487,7 @@ const writeable = fs.createWriteStream('./file');
24872487
(async function() {
24882488
for await (const chunk of iterator) {
24892489
// Handle backpressure on write
2490-
if (!writeable.write(value))
2490+
if (!writeable.write(chunk))
24912491
await once(writeable, 'drain');
24922492
}
24932493
writeable.end();

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.