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 10, 2019
1 parent 3625abe commit e9d75d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/stream.md
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 e9d75d6

Please sign in to comment.