Skip to content

Commit

Permalink
doc/api/: fix 2 little issues in modules.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Temny committed Jun 1, 2019
1 parent 389804e commit 73a3c92
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 73a3c92

Please sign in to comment.