Skip to content

Commit 8055f78

Browse files
TrottMylesBorins
authored andcommitted
doc: standardize on "host name" in deprecations.md
Our docs have a mix of "hostname" and "host name" in prose. Let's follow the usage of Unix man pages, RFCs, and most professionally-edited sources, and use "host name" in prose and "hostname" to refer to the command and in code. Lint rule forthcoming. PR-URL: #31326 Refs: #31073 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent 6e9f0da commit 8055f78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/deprecations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ The `_handle` property has been removed because improper use of the native
22702270
object can lead to crashing the application.
22712271
22722272
<a id="DEP0118"></a>
2273-
### DEP0118: `dns.lookup()` support for a falsy hostname
2273+
### DEP0118: `dns.lookup()` support for a falsy host name
22742274
<!-- YAML
22752275
changes:
22762276
- version: v11.0.0
@@ -2280,7 +2280,7 @@ changes:
22802280
22812281
Type: Runtime
22822282
2283-
Previous versions of Node.js supported `dns.lookup()` with a falsy hostname
2283+
Previous versions of Node.js supported `dns.lookup()` with a falsy host name
22842284
like `dns.lookup(false)` due to backward compatibility.
22852285
This behavior is undocumented and is thought to be unused in real world apps.
22862286
It will become an error in future versions of Node.js.

0 commit comments

Comments
 (0)