From 3c23224a76e945dd9c03e07a2e71d4f854e56743 Mon Sep 17 00:00:00 2001 From: Cotton Hou Date: Tue, 15 Oct 2019 22:21:46 +0800 Subject: [PATCH] doc: adjust code sample for stream.finished PR-URL: https://github.com/nodejs/node/pull/29983 Reviewed-By: Luigi Pinca Reviewed-By: Jeremiah Senkpiel Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- 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 fe591332613e9d..54521737704990 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1534,7 +1534,7 @@ If this is unwanted behavior then the returned cleanup function needs to be invoked in the callback: ```js -const cleanup = finished(...streams, (err) => { +const cleanup = finished(rs, (err) => { cleanup(); // ... });