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: #48922
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Akhil Marsonya <akhil.marsonya27@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
  • Loading branch information
deokjinkim authored Jul 27, 2023
1 parent b907815 commit 761f568
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 761f568

Please sign in to comment.