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>
pull/31912/head
Vse Mozhet Byt 2020-02-14 14:25:32 +02:00 committed by Luigi Pinca
parent 2f97e973ff
commit 2f23918ca5
1 changed files with 1 additions and 1 deletions

View File

@ -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: