summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOrta <orta.therox+github@gmail.com>2017-10-14 12:07:55 -0400
committerMyles Borins <mylesborins@google.com>2017-11-28 13:10:29 +0900
commit1fdcf75f9ccdefddff329e330e292e37c3a97784 (patch)
treed18d766ce927849075febfa6d13a2604c7bc4ab2
parentf2108fa51dc47999b5d7f8fdb1498719ea72c6a8 (diff)
downloadnode-new-1fdcf75f9ccdefddff329e330e292e37c3a97784.tar.gz
doc: Update a typo in module.js' comments
PR-URL: https://github.com/nodejs/node/pull/16205 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com>
-rw-r--r--lib/module.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/module.js b/lib/module.js
index da5ddd872d..537a2dcafb 100644
--- a/lib/module.js
+++ b/lib/module.js
@@ -135,7 +135,7 @@ function toRealPath(requestPath) {
});
}
-// given a path check a the file exists with any of the set extensions
+// given a path, check if the file exists with any of the set extensions
function tryExtensions(p, exts, isMain) {
for (var i = 0; i < exts.length; i++) {
const filename = tryFile(p + exts[i], isMain);