Skip to content
Permalink
Browse files

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>
  • Loading branch information
imcotton authored and targos committed Oct 15, 2019
1 parent 0b6fb3d commit c2108d4919a97a0ae3fb51b51715a174c3e704a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 doc/api/stream.md
@@ -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();
// ...
});

0 comments on commit c2108d4

Please sign in to comment.
You can’t perform that action at this time.