diff options
author | Roman Reiss <me@silverwind.io> | 2017-02-04 16:15:33 +0100 |
---|---|---|
committer | Roman Reiss <me@silverwind.io> | 2017-03-02 17:55:45 +0100 |
commit | ff1361957df58ef92c8a9dfce40c6091ea3a21d4 (patch) | |
tree | 10721c2b86095033930bffc4e52cf38d40033f16 /doc/api/dns.md | |
parent | ebe8c3debeea708ca69b8724dda9ad9c5c32e72c (diff) | |
download | android-node-v8-ff1361957df58ef92c8a9dfce40c6091ea3a21d4.tar.gz android-node-v8-ff1361957df58ef92c8a9dfce40c6091ea3a21d4.tar.bz2 android-node-v8-ff1361957df58ef92c8a9dfce40c6091ea3a21d4.zip |
doc: consistent case for primitive types
PR-URL: https://github.com/nodejs/node/pull/11167
Reviewed-By: Timothy Gu <timothygu99@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r-- | doc/api/dns.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md index 0c8bf8daa4..66e665062c 100644 --- a/doc/api/dns.md +++ b/doc/api/dns.md @@ -78,7 +78,7 @@ an integer, then it must be `4` or `6`. Alternatively, `options` can be an object containing these properties: -* `family` {Number} - The record family. If present, must be the integer +* `family` {number} - The record family. If present, must be the integer `4` or `6`. If not provided, both IP v4 and v6 addresses are accepted. * `hints`: {Number} - If present, it should be one or more of the supported `getaddrinfo` flags. If `hints` is not provided, then no flags are passed to @@ -214,9 +214,9 @@ Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the will contain an array of IPv4 addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). -* `hostname` {String} Hostname to resolve. +* `hostname` {string} Hostname to resolve. * `options` {Object} - * `ttl` {Boolean} Retrieve the Time-To-Live value (TTL) of each record. + * `ttl` {boolean} Retrieve the Time-To-Live value (TTL) of each record. The callback receives an array of `{ address: '1.2.3.4', ttl: 60 }` objects rather than an array of strings. The TTL is expressed in seconds. * `callback` {Function} An `(err, result)` callback function. @@ -235,9 +235,9 @@ Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the `hostname`. The `addresses` argument passed to the `callback` function will contain an array of IPv6 addresses. -* `hostname` {String} Hostname to resolve. +* `hostname` {string} Hostname to resolve. * `options` {Object} - * `ttl` {Boolean} Retrieve the Time-To-Live value (TTL) of each record. + * `ttl` {boolean} Retrieve the Time-To-Live value (TTL) of each record. The callback receives an array of `{ address: '0:1:2:3:4:5:6:7', ttl: 60 }` objects rather than an array of strings. The TTL is expressed in seconds. * `callback` {Function} An `(err, result)` callback function. |