Skip to content

Commit

Permalink
doc: clarify wording in modules.md
Browse files Browse the repository at this point in the history
This is a minor clarification in two places in modules.md.

PR-URL: #27853
Reviewed-By: Rich Trott <rtrott@gmail.com>
  • Loading branch information
Alex-Temny authored and targos committed Jun 2, 2019
1 parent 9229825 commit ef25ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit ef25ac5

Please sign in to comment.