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 <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>
  • Loading branch information
imcotton authored and targos committed Nov 11, 2019
1 parent 0b6fb3d commit c2108d4
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 @@ -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();
// ...
});
Expand Down

0 comments on commit c2108d4

Please sign in to comment.