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'); ```