From ef25ac52237729cb019fd1c585b64da0a26b1999 Mon Sep 17 00:00:00 2001 From: Alex Temny Date: Fri, 24 May 2019 16:22:49 +0300 Subject: [PATCH] doc: clarify wording in modules.md This is a minor clarification in two places in modules.md. PR-URL: https://github.com/nodejs/node/pull/27853 Reviewed-By: Rich Trott --- 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 2be27fe6ce12dc..77369a500fbc10 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -147,7 +147,7 @@ To get the exact filename that will be loaded when `require()` is called, use the `require.resolve()` function. Putting together all of the above, here is the high-level algorithm -in pseudocode of what `require.resolve()` does: +in pseudocode of what `require()` does: ```txt require(X) from module at path Y @@ -342,7 +342,7 @@ If the given path does not exist, `require()` will throw an [`Error`][] with its It is convenient to organize programs and libraries into self-contained -directories, and then provide a single entry point to that library. +directories, and then provide a single entry point to those directories. There are three ways in which a folder may be passed to `require()` as an argument.