summaryrefslogtreecommitdiff
path: root/doc/api/dns.md
diff options
context:
space:
mode:
authorSakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com>2017-01-28 00:36:58 +0530
committerSakthipriyan Vairamani (thefourtheye) <thechargingvolcano@gmail.com>2017-01-30 18:11:43 +0530
commit17fb1d749d3325475aeb9e05f6f2d4b3bc87bb56 (patch)
treee20309610e49d24feaaa742aa36a7a994b0ca4aa /doc/api/dns.md
parente995a33c7661f0774f5f26234586d268b9d142af (diff)
downloadandroid-node-v8-17fb1d749d3325475aeb9e05f6f2d4b3bc87bb56.tar.gz
android-node-v8-17fb1d749d3325475aeb9e05f6f2d4b3bc87bb56.tar.bz2
android-node-v8-17fb1d749d3325475aeb9e05f6f2d4b3bc87bb56.zip
doc: change logical to bitwise OR in dns lookup
The `hints` value will be a number. To specify more than one hints, their corresponding bits have to be set. So bitwise OR should be used instead of logical OR. PR-URL: https://github.com/nodejs/node/pull/11037 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'doc/api/dns.md')
-rw-r--r--doc/api/dns.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/dns.md b/doc/api/dns.md
index e253039b68..d3af3c3429 100644
--- a/doc/api/dns.md
+++ b/doc/api/dns.md
@@ -77,7 +77,7 @@ Alternatively, `options` can be an object containing these properties:
`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
- `getaddrinfo`. Multiple flags can be passed through `hints` by logically
+ `getaddrinfo`. Multiple flags can be passed through `hints` by bitwise
`OR`ing their values.
See [supported `getaddrinfo` flags][] for more information on supported
flags.