From 6494a6c094c241ed3b20ef0f3c9e04ee5cb182c7 Mon Sep 17 00:00:00 2001 From: Vse Mozhet Byt Date: Fri, 14 Feb 2020 14:25:32 +0200 Subject: [PATCH] doc: update stream.pipeline() signature The `...transforms` parameter seems optional. Refs: https://github.com/nodejs/node/blob/087583741716969edf12874d4f1f1774de581f50/lib/internal/streams/pipeline.js#L130-L132 Refs: https://github.com/nodejs/node/blob/e559842188f541b884abff2ffad4d2d3e1b841a6/doc/api/stream.md#streams-compatibility-with-async-generators-and-async-iterators (see the last example) --- doc/api/stream.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index cf3ecd461c13ed..6d90e1f21d0c3d 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)`