doc: correct EventEmitter reference

PR-URL: https://github.com/nodejs/node/pull/16791
Fixes: https://github.com/nodejs/node/issues/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>
This commit is contained in:
gowpen authored and Gibson Fahnestock committed 2017-12-20 01:58:41 +00:00
1 parent bf123f3dc2
commit 24178ac002
1 file changed
+1 -1
+1 -1
View File
@@ -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