Skip to content

Commit 2991493

Browse files
authored
doc: typo fix (#4558)
Add missing "to" between the two verbs as a typo fix.
1 parent ec448c8 commit 2991493

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

locale/en/knowledge/getting-started/control-flow/what-are-event-emitters.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ In the `print` event, note that we pass an extra parameter - all the extra param
4545

4646
If you use the method `once` instead of `on`, after the callback is fired, it is removed from the list of callbacks. A handy little function if you want to detect only the first time an event has been emitted.
4747

48-
If you want remove a specific callback, you can use `removeListener`. If you want to remove all callbacks to a specific event, you can use `removeAllListeners`.
48+
If you want to remove a specific callback, you can use `removeListener`. If you want to remove all callbacks to a specific event, you can use `removeAllListeners`.
4949

5050
```javascript
5151
var EventEmitter = require('events').EventEmitter,
@@ -106,4 +106,4 @@ true
106106
false
107107
```
108108

109-
NOTE: If you want create more than 10 listeners on a single event, you will have to make a call to `ee.setMaxListeners(n)` where n is the max numbers of listeners (with zero being unlimited number of listeners). This is used to make sure you aren't accidentally leaking event listeners.
109+
NOTE: If you want to create more than 10 listeners on a single event, you will have to make a call to `ee.setMaxListeners(n)` where n is the max numbers of listeners (with zero being unlimited number of listeners). This is used to make sure you aren't accidentally leaking event listeners.

0 commit comments

Comments
 (0)