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(); // ... });