Skip to content

Commit

Permalink
doc: minor clarification in the modules API doc.
Browse files Browse the repository at this point in the history
PR-URL: nodejs#1983
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
ChALkeR committed Jun 16, 2015
1 parent c207e8d commit 96165f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/api/modules.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ A module prefixed with `'./'` is relative to the file calling `require()`.
That is, `circle.js` must be in the same directory as `foo.js` for
`require('./circle')` to find it.

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

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

0 comments on commit 96165f9

Please sign in to comment.