Skip to content

Commit 73a3c92

Browse files
committed
doc/api/: fix 2 little issues in modules.md
1 parent 389804e commit 73a3c92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/api/modules.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ To get the exact filename that will be loaded when `require()` is called, use
147147
the `require.resolve()` function.
148148

149149
Putting together all of the above, here is the high-level algorithm
150-
in pseudocode of what `require.resolve()` does:
150+
in pseudocode of what `require()` does:
151151

152152
```txt
153153
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
342342
<!--type=misc-->
343343

344344
It is convenient to organize programs and libraries into self-contained
345-
directories, and then provide a single entry point to that library.
345+
directories, and then provide a single entry point to those directories.
346346
There are three ways in which a folder may be passed to `require()` as
347347
an argument.
348348

0 commit comments

Comments
 (0)