Skip to content

Commit

Permalink
doc: fix print results in events
Browse files Browse the repository at this point in the history
  • Loading branch information
pluris committed Sep 8, 2023
1 parent 0bce573 commit 70dec39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```
Expand Down

0 comments on commit 70dec39

Please sign in to comment.