From 70dec391803172a7f5b815a0839e1352e8606192 Mon Sep 17 00:00:00 2001 From: pluris Date: Fri, 8 Sep 2023 09:34:56 +0900 Subject: [PATCH] doc: fix print results in `events` --- 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 8dcb8ebfed55cf..b93ab91a78596b 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'); ```