diff options
author | Rich Trott <rtrott@gmail.com> | 2017-12-06 10:15:58 -0800 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2017-12-07 13:49:53 -0800 |
commit | de06dc92d150c1f999462a18c7594a5eea81225f (patch) | |
tree | e2135d603ad97a3dd4d2f803b562688ce49a48f2 /doc/api/events.md | |
parent | 86d386a07d3bb7d13c0b174f37cf2bc1d00dee51 (diff) | |
download | node-new-de06dc92d150c1f999462a18c7594a5eea81225f.tar.gz |
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: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'doc/api/events.md')
-rw-r--r-- | doc/api/events.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/events.md b/doc/api/events.md index 443137f170..8eaa8cae10 100644 --- a/doc/api/events.md +++ b/doc/api/events.md @@ -409,7 +409,7 @@ added: v0.3.0 * `eventName` {any} 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 @@ -464,7 +464,7 @@ added: v6.0.0 * `eventName` {any} 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. |