mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: adjust code sample for stream.finished
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
committed by
Michaël Zasso
parent
3a90fcfb79
commit
f185990738
@@ -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();
|
||||
// ...
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user