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