Permalink
Browse files

doc: fix common typo involving one-time listeners

Our docs use both "one time listener" and "one-time listener". The
second is more correct. Standardize on that.

PR-URL: #17502
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
  • Loading branch information...
Trott authored and gibfahn committed Dec 6, 2017
1 parent b563908 commit a15da3bf45e9a86d72342efdb21a280bbf94471b
Showing with 4 additions and 4 deletions.
  1. +2 −2 doc/api/events.md
  2. +1 −1 doc/api/http.md
  3. +1 −1 doc/api/net.md
View
@@ -404,7 +404,7 @@ added: v0.3.0
* `eventName` {string|symbol} The name of the event.
* `listener` {Function} The callback function
Adds a **one time** `listener` function for the event named `eventName`. The
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
@@ -459,7 +459,7 @@ added: v6.0.0
* `eventName` {string|symbol} The name of the event.
* `listener` {Function} The callback function
Adds a **one time** `listener` function for the event named `eventName` to the
Adds a **one-time** `listener` function for the event named `eventName` to the
*beginning* of the listeners array. The next time `eventName` is triggered, this
listener is removed, and then invoked.
View
@@ -1570,7 +1570,7 @@ This function allows one to transparently issue requests.
`options` can be an object or a string. If `options` is a string, it is
automatically parsed with [`url.parse()`][].
The optional `callback` parameter will be added as a one time listener for
The optional `callback` parameter will be added as a one-time listener for
the [`'response'`][] event.
`http.request()` returns an instance of the [`http.ClientRequest`][]
View
@@ -694,7 +694,7 @@ or [`destroy()`][] the socket.
If `timeout` is 0, then the existing idle timeout is disabled.
The optional `callback` parameter will be added as a one time listener for the
The optional `callback` parameter will be added as a one-time listener for the
[`'timeout'`][] event.
### socket.unref()

0 comments on commit a15da3b

Please sign in to comment.