Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2020-02-14 15:25:32 +0300
committerLuigi Pinca <luigipinca@gmail.com>2020-02-22 10:18:43 +0300
commit2f23918ca5090417ad0e06be6ecce63553f17985 (patch)
tree4c9406cc82108c6d227fa013cafba7624b99f6ef /doc/api/stream.md
parent2f97e973ff540d2ae7de77482c631c06cc99c313 (diff)
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: https://github.com/nodejs/node/pull/31789 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r--doc/api/stream.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md
index acb859f3920..3d37f2b3003 100644
--- a/doc/api/stream.md
+++ b/doc/api/stream.md
@@ -1557,7 +1557,7 @@ const cleanup = finished(rs, (err) => {
});
```
-### `stream.pipeline(source, ...transforms, destination, callback)`
+### `stream.pipeline(source[, ...transforms], destination, callback)`
<!-- YAML
added: v10.0.0
changes: