Skip to content

Commit 96165f9

Browse files
committed
doc: minor clarification in the modules API doc.
PR-URL: #1983 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
1 parent c207e8d commit 96165f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: doc/api/modules.markdown

+2-2
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ A module prefixed with `'./'` is relative to the file calling `require()`.
145145
That is, `circle.js` must be in the same directory as `foo.js` for
146146
`require('./circle')` to find it.
147147

148-
Without a leading '/' or './' to indicate a file, the module is either a
149-
"core module" or is loaded from a `node_modules` folder.
148+
Without a leading '/', './', or '../' to indicate a file, the module is either a
149+
core module or is loaded from a `node_modules` folder.
150150

151151
If the given path does not exist, `require()` will throw an Error with its
152152
`code` property set to `'MODULE_NOT_FOUND'`.

0 commit comments

Comments
 (0)