Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 069fd23

Browse filesBrowse 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 <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>
1 parent 533cc5c commit 069fd23
Copy full SHA for 069fd23

File tree

Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎doc/api/events.md‎

Copy file name to clipboardExpand all lines: doc/api/events.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ added: v0.3.0
409409
* `eventName` {any} The name of the event.
410410
* `listener` {Function} The callback function
411411

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

415415
```js
@@ -464,7 +464,7 @@ added: v6.0.0
464464
* `eventName` {any} The name of the event.
465465
* `listener` {Function} The callback function
466466

467-
Adds a **one time** `listener` function for the event named `eventName` to the
467+
Adds a **one-time** `listener` function for the event named `eventName` to the
468468
*beginning* of the listeners array. The next time `eventName` is triggered, this
469469
listener is removed, and then invoked.
470470

Collapse file

‎doc/api/http.md‎

Copy file name to clipboardExpand all lines: doc/api/http.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,7 @@ This function allows one to transparently issue requests.
17821782
string, it is automatically parsed with [`url.parse()`][]. If it is a [`URL`][]
17831783
object, it will be automatically converted to an ordinary `options` object.
17841784

1785-
The optional `callback` parameter will be added as a one time listener for
1785+
The optional `callback` parameter will be added as a one-time listener for
17861786
the [`'response'`][] event.
17871787

17881788
`http.request()` returns an instance of the [`http.ClientRequest`][]
Collapse file

‎doc/api/net.md‎

Copy file name to clipboardExpand all lines: doc/api/net.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ socket.on('timeout', () => {
802802

803803
If `timeout` is 0, then the existing idle timeout is disabled.
804804

805-
The optional `callback` parameter will be added as a one time listener for the
805+
The optional `callback` parameter will be added as a one-time listener for the
806806
[`'timeout'`][] event.
807807

808808
### socket.unref()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.