Skip to content

Commit d800a65

Browse files
Jungku Leepull[bot]
Jungku Lee
authored andcommitted
doc: fix print results in events
PR-URL: #49548 Refs: #49537 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Moshe Atlow <[email protected]>
1 parent 1e3a944 commit d800a65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/events.md

Lines changed: 1 addition & 1 deletion
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)