From d800a65186db51dd45997bdeeabe40d97c5f5398 Mon Sep 17 00:00:00 2001 From: Jungku Lee Date: Wed, 20 Sep 2023 02:31:09 +0900 Subject: [PATCH] doc: fix print results in `events` PR-URL: https://github.com/nodejs/node/pull/49548 Refs: https://github.com/nodejs/node/issues/49537 Reviewed-By: Luigi Pinca Reviewed-By: Moshe Atlow --- 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 4eee965b2f68ff..19fccbce0c5a4b 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -105,7 +105,7 @@ class MyEmitter extends EventEmitter {} const myEmitter = new MyEmitter(); myEmitter.on('event', (a, b) => { console.log(a, b, this); - // Prints: a b {} + // Prints: a b undefined }); myEmitter.emit('event', 'a', 'b'); ```