Skip to content

Commit 2f23918

Browse files
vsemozhetbytlpinca
authored andcommitted
doc: update stream.pipeline() signature
The `...transforms` parameter is optional. Refs: https://github.com/nodejs/node/blob/0875837417/lib/internal/streams/pipeline.js#L130-L132 Refs: https://github.com/nodejs/node/blob/e559842188/doc/api/stream.md#streams-compatibility-with-async-generators-and-async-iterators PR-URL: #31789 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Robert Nagy <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 2f97e97 commit 2f23918

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1557,7 +1557,7 @@ const cleanup = finished(rs, (err) => {
15571557
});
15581558
```
15591559

1560-
### `stream.pipeline(source, ...transforms, destination, callback)`
1560+
### `stream.pipeline(source[, ...transforms], destination, callback)`
15611561
<!-- YAML
15621562
added: v10.0.0
15631563
changes:

0 commit comments

Comments
 (0)