From 379e1c0d9c71510aa03d4c5e359b62ace847cd5c Mon Sep 17 00:00:00 2001 From: v <2583695112@qq.com> Date: Thu, 10 Nov 2022 13:46:47 +0800 Subject: [PATCH] doc: adjust wording to eliminate awkward typography --- doc/api/modules.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index 6f663d473c3602..2f0c8aff496b30 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -90,8 +90,8 @@ By default, Node.js will treat the following as CommonJS modules: * Files with an extension that is not `.mjs`, `.cjs`, `.json`, `.node`, or `.js` (when the nearest parent `package.json` file contains a top-level field [`"type"`][] with a value of `"module"`, those files will be recognized as - CommonJS modules only if they are being `require`d, not when used as the - command-line entry point of the program). + CommonJS modules only if they are being included via `require()`, not when + used as the command-line entry point of the program). See [Determining module system][] for more details.