Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4068d64

Browse filesBrowse files
ChALkeRFishrock123
authored andcommitted
doc: fix EventEmitter#eventNames() example
Replace myErr with myEE in one place. Fix the expected output to have the actual formatting. PR-URL: #6417 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Brian White <mscdex@mscdex.net>
1 parent bfcde97 commit 4068d64
Copy full SHA for 4068d64

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎doc/api/events.md‎

Copy file name to clipboardExpand all lines: doc/api/events.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -310,8 +310,8 @@ myEE.on('bar', () => {});
310310
const sym = Symbol('symbol');
311311
myEE.on(sym, () => {});
312312

313-
console.log(myErr.eventNames());
314-
// Prints ['foo', 'bar', Symbol('symbol')]
313+
console.log(myEE.eventNames());
314+
// Prints [ 'foo', 'bar', Symbol(symbol) ]
315315
```
316316

317317
### emitter.getMaxListeners()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.