Skip to content

Commit 3dd3a3c

Browse files
authored
doc: update modules.md wording
PR-URL: #41728 Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Mohammed Keyvanzadeh <[email protected]> Reviewed-By: Mestery <[email protected]>
1 parent d2ac192 commit 3dd3a3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ folders as modules, and work for both `require` and `import`.
481481

482482
If the module identifier passed to `require()` is not a
483483
[core](#core-modules) module, and does not begin with `'/'`, `'../'`, or
484-
`'./'`, then Node.js starts at the parent directory of the current module, and
484+
`'./'`, then Node.js starts at the directory of the current module, and
485485
adds `/node_modules`, and attempts to load the module from that location.
486486
Node.js will not append `node_modules` to a path already ending in
487487
`node_modules`.

0 commit comments

Comments
 (0)