From ba3f7ff94d95da65a69755000a22c00856165770 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 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 Reviewed-By: Robert Nagy Reviewed-By: Yongsheng Zhang Reviewed-By: Luigi Pinca Reviewed-By: Colin Ihrig --- 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 09713f20746180..762f1565721c4e 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1555,7 +1555,7 @@ const cleanup = finished(rs, (err) => { }); ``` -### `stream.pipeline(source, ...transforms, destination, callback)` +### `stream.pipeline(source[, ...transforms], destination, callback)`