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