Skip to content

Commit e9d75d6

Browse files
imcottontargos
authored andcommitted
doc: adjust code sample for stream.finished
PR-URL: #29983 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 3625abe commit e9d75d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/stream.md

Lines changed: 1 addition & 1 deletion
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)