Skip to content

Commit 7db7e47

Browse files
thefourtheyeMylesBorins
authored andcommitted
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: #11037 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Timothy Gu <[email protected]> Reviewed-By: Sam Roberts <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 28b707b commit 7db7e47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/dns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Alternatively, `options` can be an object containing these properties:
7777
`4` or `6`. If not provided, both IP v4 and v6 addresses are accepted.
7878
* `hints`: {Number} - If present, it should be one or more of the supported
7979
`getaddrinfo` flags. If `hints` is not provided, then no flags are passed to
80-
`getaddrinfo`. Multiple flags can be passed through `hints` by logically
80+
`getaddrinfo`. Multiple flags can be passed through `hints` by bitwise
8181
`OR`ing their values.
8282
See [supported `getaddrinfo` flags][] for more information on supported
8383
flags.

0 commit comments

Comments
 (0)