Skip to content

Commit

Permalink
doc: fix EventEmitter#eventNames() example
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ChALkeR committed Apr 27, 2016
1 parent 3cdb506 commit 10e3efb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/events.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ myEE.on('bar', () => {});
const sym = Symbol('symbol');
myEE.on(sym, () => {});

console.log(myErr.eventNames());
// Prints ['foo', 'bar', Symbol('symbol')]
console.log(myEE.eventNames());
// Prints [ 'foo', 'bar', Symbol(symbol) ]
```

### emitter.getMaxListeners()
Expand Down

0 comments on commit 10e3efb

Please sign in to comment.