From 3c3daa5d2d67a7e35dbd16eeb322bfcb35cb11b5 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 6 Dec 2017 10:13:20 -0800 Subject: [PATCH 1/3] doc: fix typo in dns.md --- doc/api/dns.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/dns.md b/doc/api/dns.md index 0b064ff79dbab3..4ae44a211a0e06 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -514,7 +514,7 @@ will be present on the object: | `"SRV"` | Refer to [`dns.resolveSrv()`][] | | `"TXT"` | This type of record contains an array property called `entries` which refers to [`dns.resolveTxt()`][], eg. `{ entries: ['...'], type: 'TXT' }` | -Here is a example of the `ret` object passed to the callback: +Here is an example of the `ret` object passed to the callback: ```js From 57cd6fec5ae6215722c1d4953bfbb20f1aa8885a Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 6 Dec 2017 10:15:58 -0800 Subject: [PATCH 2/3] 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. --- doc/api/events.md | 4 ++-- doc/api/http.md | 2 +- doc/api/net.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/api/events.md b/doc/api/events.md index 443137f1705e26..8eaa8cae102b75 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. diff --git a/doc/api/http.md b/doc/api/http.md index cb4eff07325d2d..9f06296e6e2584 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1785,7 +1785,7 @@ This function allows one to transparently issue requests. string, it is automatically parsed with [`url.parse()`][]. If it is a [`URL`][] object, it will be automatically converted to an ordinary `options` object. -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`][] diff --git a/doc/api/net.md b/doc/api/net.md index 04821ad2e90ea7..03ed3d5cbc3955 100644 --- a/doc/api/net.md +++ b/doc/api/net.md @@ -802,7 +802,7 @@ socket.on('timeout', () => { 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() From 298effc6a53aad6438cc2f3953fde809a9fb83b6 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 6 Dec 2017 10:18:05 -0800 Subject: [PATCH 3/3] doc: fix typo in repl.md --- doc/api/repl.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/repl.md b/doc/api/repl.md index 1be90347ac57e1..56661d86d9fb79 100644 --- a/doc/api/repl.md +++ b/doc/api/repl.md @@ -418,7 +418,7 @@ changes: * `output` {Writable} The Writable stream to which REPL output will be written. Defaults to `process.stdout`. * `terminal` {boolean} If `true`, specifies that the `output` should be - treated as a a TTY terminal, and have ANSI/VT100 escape codes written to it. + treated as a TTY terminal, and have ANSI/VT100 escape codes written to it. Defaults to checking the value of the `isTTY` property on the `output` stream upon instantiation. * `eval` {Function} The function to be used when evaluating each given line