Skip to content

Commit 3529448

Browse files
Jungku Leeruyadorno
Jungku Lee
authored andcommitted
doc: fix print results in events
PR-URL: #49548 Refs: #49537 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 4879e3f commit 3529448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/events.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class MyEmitter extends EventEmitter {}
105105
const myEmitter = new MyEmitter();
106106
myEmitter.on('event', (a, b) => {
107107
console.log(a, b, this);
108-
// Prints: a b {}
108+
// Prints: a b undefined
109109
});
110110
myEmitter.emit('event', 'a', 'b');
111111
```

0 commit comments

Comments
 (0)