diff options
author | Alex Temny <dashkamimicry100@gmail.com> | 2019-05-24 16:22:49 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-06-02 11:57:01 +0200 |
commit | db013e1cd3947ed0ae9dddaec127f1707e91a2ee (patch) | |
tree | db99ca2a81e0922ba6da1e01bd49cae49ece33d6 /doc/api/modules.md | |
parent | 47ee38378c8f6b3f5ef428bfdf6c1eaa62f9956f (diff) | |
download | android-node-v8-db013e1cd3947ed0ae9dddaec127f1707e91a2ee.tar.gz android-node-v8-db013e1cd3947ed0ae9dddaec127f1707e91a2ee.tar.bz2 android-node-v8-db013e1cd3947ed0ae9dddaec127f1707e91a2ee.zip |
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 <rtrott@gmail.com>
Diffstat (limited to 'doc/api/modules.md')
-rw-r--r-- | doc/api/modules.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/modules.md b/doc/api/modules.md index 2be27fe6ce..77369a500f 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 <!--type=misc--> 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. |