Skip to content

Commit c2108d4

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 0b6fb3d commit c2108d4

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
@@ -1530,7 +1530,7 @@ If this is unwanted behavior then the returned cleanup function needs to be
15301530
invoked in the callback:
15311531

15321532
```js
1533-
const cleanup = finished(...streams, (err) => {
1533+
const cleanup = finished(rs, (err) => {
15341534
cleanup();
15351535
// ...
15361536
});

0 commit comments

Comments
 (0)