Skip to content

Commit 3c23224

Browse files
imcottontargos
authored andcommitted
doc: adjust code sample for stream.finished
PR-URL: #29983 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent d91d270 commit 3c23224

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1534,7 +1534,7 @@ If this is unwanted behavior then the returned cleanup function needs to be
15341534
invoked in the callback:
15351535

15361536
```js
1537-
const cleanup = finished(...streams, (err) => {
1537+
const cleanup = finished(rs, (err) => {
15381538
cleanup();
15391539
// ...
15401540
});

0 commit comments

Comments
 (0)