summaryrefslogtreecommitdiff
path: root/doc/api/dns.md
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-04-02 08:38:48 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-04-04 13:45:39 +0300
commitde0053cc3280bdf72c9010f383290f79120a1e98 (patch)
tree493fc9bd84c3d8e97342202d0a840b4fe29bdd6e /doc/api/dns.md
parent237cbe10fb82ba6ec69b14193a4a970e184306e7 (diff)
downloadandroid-node-v8-de0053cc3280bdf72c9010f383290f79120a1e98.tar.gz
android-node-v8-de0053cc3280bdf72c9010f383290f79120a1e98.tar.bz2
android-node-v8-de0053cc3280bdf72c9010f383290f79120a1e98.zip
doc: fix various nits
* Replace 2 hyphens (--) by spaced m-dashes (—) as per STYLE_GUIDE.md. * Space infix operators. * Unify quotes in inline code spans (use only single quotes). * Unify `* Returns:` (eliminate deviations). * Dedupe spaces. PR-URL: https://github.com/nodejs/node/pull/19743 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r--doc/api/dns.md22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md
index 27c41bbf4b..d4fca7af84 100644
--- a/doc/api/dns.md
+++ b/doc/api/dns.md
@@ -141,7 +141,7 @@ changes:
- `all` {boolean} When `true`, the callback returns all resolved addresses in
an array. Otherwise, returns a single address. **Default:** `false`.
- `verbatim` {boolean} When `true`, the callback receives IPv4 and IPv6
- addresses in the order the DNS resolver returned them. When `false`,
+ addresses in the order the DNS resolver returned them. When `false`,
IPv4 addresses are placed before IPv6 addresses.
**Default:** currently `false` (addresses are reordered) but this is
expected to change in the not too distant future.
@@ -499,16 +499,16 @@ will be present on the object:
| Type | Properties |
|------|------------|
-| `"A"` | `address` / `ttl` |
-| `"AAAA"` | `address` / `ttl` |
-| `"CNAME"` | `value` |
-| `"MX"` | Refer to [`dns.resolveMx()`][] |
-| `"NAPTR"` | Refer to [`dns.resolveNaptr()`][] |
-| `"NS"` | `value` |
-| `"PTR"` | `value` |
-| `"SOA"` | Refer to [`dns.resolveSoa()`][] |
-| `"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' }` |
+| `'A'` | `address` / `ttl` |
+| `'AAAA'` | `address` / `ttl` |
+| `'CNAME'` | `value` |
+| `'MX'` | Refer to [`dns.resolveMx()`][] |
+| `'NAPTR'` | Refer to [`dns.resolveNaptr()`][] |
+| `'NS'` | `value` |
+| `'PTR'` | `value` |
+| `'SOA'` | Refer to [`dns.resolveSoa()`][] |
+| `'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 an example of the `ret` object passed to the callback: