From e9d75d6115b9f520e91fef2b12ecbf647c2530a5 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 6460563efca19c..25dd8616c10c1c 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1530,7 +1530,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(); // ... });