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 and RafaelGSS committed Aug 17, 2023
1 parent a12ce11 commit 0db104a
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 @@ -1799,7 +1799,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 0db104a

Please sign in to comment.