diff --git a/doc/api/events.markdown b/doc/api/events.markdown index 500d046f9e59f7..464a0f61570113 100644 --- a/doc/api/events.markdown +++ b/doc/api/events.markdown @@ -130,7 +130,7 @@ myEmitter.emit('event'); ``` Using the `eventEmitter.once()` method, it is possible to register a listener -that is immediately unregistered after it is called. +that is unregistered before it is called. ```js const myEmitter = new MyEmitter(); @@ -338,9 +338,8 @@ Returns a reference to the `EventEmitter` so calls can be chained. ### emitter.once(eventName, listener) -Adds a **one time** `listener` function for the event named `eventName`. This -listener is invoked only the next time `eventName` is triggered, after which -it is removed. +Adds a **one time** `listener` function for the event named `eventName`. The +next time `eventName` is triggered, this listener is removed and then invoked. ```js server.once('connection', (stream) => {