Skip to content

Commit

Permalink
doc: fix second parameter name of events.addAbortListener
Browse files Browse the repository at this point in the history
Second parameter name is described as `listener`(not resource)
in below line.

PR-URL: nodejs#48922
Reviewed-By: Moshe Atlow <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Akhil Marsonya <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
  • Loading branch information
deokjinkim authored and pluris committed Aug 7, 2023
1 parent bca4678 commit f134ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ const emitter = new EventEmitter();
setMaxListeners(5, target, emitter);
```

## `events.addAbortListener(signal, resource)`
## `events.addAbortListener(signal, listener)`

<!-- YAML
added: v20.5.0
Expand Down

0 comments on commit f134ab7

Please sign in to comment.