Skip to content

Commit

Permalink
doc: adjust code sample for stream.finished
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
imcotton authored and targos committed Oct 28, 2019
1 parent d91d270 commit 3c23224
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -1534,7 +1534,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();
// ...
});
Expand Down

0 comments on commit 3c23224

Please sign in to comment.