From f134ab7049a0c66b6b9b392ed7c392160ca77407 Mon Sep 17 00:00:00 2001 From: Deokjin Kim Date: Fri, 28 Jul 2023 00:10:48 +0900 Subject: [PATCH] doc: fix second parameter name of `events.addAbortListener` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Second parameter name is described as `listener`(not resource) in below line. PR-URL: https://github.com/nodejs/node/pull/48922 Reviewed-By: Moshe Atlow Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat Reviewed-By: Akhil Marsonya Reviewed-By: Tobias Nießen --- doc/api/events.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/events.md b/doc/api/events.md index 817cf73fbdcc3d..8dcb8ebfed55cf 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -1803,7 +1803,7 @@ const emitter = new EventEmitter(); setMaxListeners(5, target, emitter); ``` -## `events.addAbortListener(signal, resource)` +## `events.addAbortListener(signal, listener)`