Skip to content

Commit a15da3b

Browse files
Trottgibfahn
authored andcommitted
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 <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Jon Moss <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b563908 commit a15da3b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

doc/api/events.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ added: v0.3.0
404404
* `eventName` {string|symbol} The name of the event.
405405
* `listener` {Function} The callback function
406406

407-
Adds a **one time** `listener` function for the event named `eventName`. The
407+
Adds a **one-time** `listener` function for the event named `eventName`. The
408408
next time `eventName` is triggered, this listener is removed and then invoked.
409409

410410
```js
@@ -459,7 +459,7 @@ added: v6.0.0
459459
* `eventName` {string|symbol} The name of the event.
460460
* `listener` {Function} The callback function
461461

462-
Adds a **one time** `listener` function for the event named `eventName` to the
462+
Adds a **one-time** `listener` function for the event named `eventName` to the
463463
*beginning* of the listeners array. The next time `eventName` is triggered, this
464464
listener is removed, and then invoked.
465465

doc/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ This function allows one to transparently issue requests.
15701570
`options` can be an object or a string. If `options` is a string, it is
15711571
automatically parsed with [`url.parse()`][].
15721572

1573-
The optional `callback` parameter will be added as a one time listener for
1573+
The optional `callback` parameter will be added as a one-time listener for
15741574
the [`'response'`][] event.
15751575

15761576
`http.request()` returns an instance of the [`http.ClientRequest`][]

doc/api/net.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,7 @@ or [`destroy()`][] the socket.
694694

695695
If `timeout` is 0, then the existing idle timeout is disabled.
696696

697-
The optional `callback` parameter will be added as a one time listener for the
697+
The optional `callback` parameter will be added as a one-time listener for the
698698
[`'timeout'`][] event.
699699

700700
### socket.unref()

0 commit comments

Comments
 (0)