From b3ce3753e249a27f4a5bff3279a8f626599c5e29 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 --- 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 52d8183d8ddbc1..320ba20cd2b2a6 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1532,7 +1532,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(); // ... });