From 7db7e47d7bed2c068ce4b0128ccc76bfe9f91eb7 Mon Sep 17 00:00:00 2001 From: "Sakthipriyan Vairamani (thefourtheye)" Date: Sat, 28 Jan 2017 00:36:58 +0530 Subject: [PATCH] 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 Reviewed-By: Timothy Gu Reviewed-By: Sam Roberts Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- 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 406f1548e8393b..ec7469f3152bf4 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.