Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a8533ac

Browse filesBrowse files
thefourtheyeevanlucas
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 <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>
1 parent ac36d78 commit a8533ac
Copy full SHA for a8533ac

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/dns.md‎

Copy file name to clipboardExpand all lines: doc/api/dns.md
+1-1Lines changed: 1 addition & 1 deletion
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.