Skip to content

Commit

Permalink
doc: correct EventEmitter reference
Browse files Browse the repository at this point in the history
PR-URL: nodejs#16791
Fixes: nodejs#16789
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
gowpen authored and cjihrig committed Nov 6, 2017
1 parent 762a11f commit d7df4df
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 @@ -77,7 +77,7 @@ myEmitter.emit('event', 'a', 'b');

## Asynchronous vs. Synchronous

The `EventListener` calls all listeners synchronously in the order in which
The `EventEmitter` calls all listeners synchronously in the order in which
they were registered. This is important to ensure the proper sequencing of
events and to avoid race conditions or logic errors. When appropriate,
listener functions can switch to an asynchronous mode of operation using
Expand Down

0 comments on commit d7df4df

Please sign in to comment.