Skip to content

Commit 8285605

Browse files
authored
doc: fix a/an article typos in module, util, and dns
Signed-off-by: Daijiro Wachi <daijiro.wachi@gmail.com> PR-URL: #63766 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent 6c98fea commit 8285605

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

doc/api/dns.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ changes:
483483
* `err` {Error}
484484
* `addresses` {string\[] | Object\[]}
485485

486-
Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the
486+
Uses the DNS protocol to resolve an IPv4 addresses (`A` records) for the
487487
`hostname`. The `addresses` argument passed to the `callback` function
488488
will contain an array of IPv4 addresses (e.g.
489489
`['74.125.79.104', '74.125.79.105', '74.125.79.106']`).

doc/api/module.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ For general use cases, it's recommended to call `module.enableCompileCache()` wi
534534
specifying the `options.directory`, so that the directory can be overridden by the
535535
`NODE_COMPILE_CACHE` environment variable when necessary.
536536
537-
Since compile cache is supposed to be a optimization that is not mission critical, this
537+
Since compile cache is supposed to be an optimization that is not mission critical, this
538538
method is designed to not throw any exception when the compile cache cannot be enabled.
539539
Instead, it will return an object containing an error message in the `message` field to
540540
aid debugging. If compile cache is enabled successfully, the `directory` field in the

doc/api/util.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1580,7 +1580,7 @@ symbol is [registered globally][global symbol registry] and can be
15801580
accessed in any environment as `Symbol.for('nodejs.util.inspect.custom')`.
15811581

15821582
Using this allows code to be written in a portable fashion, so that the custom
1583-
inspect function is used in an Node.js environment and ignored in the browser.
1583+
inspect function is used in a Node.js environment and ignored in the browser.
15841584
The `util.inspect()` function itself is passed as third argument to the custom
15851585
inspect function to allow further portability.
15861586

0 commit comments

Comments
 (0)