summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorСковорода Никита Андреевич <chalkerx@gmail.com>2015-06-15 14:45:34 +0300
committerСковорода Никита Андреевич <chalkerx@gmail.com>2015-06-16 05:42:05 +0300
commit96165f9be2365eeb4c4669553cb7f12d6f5a374c (patch)
treea2ed0df077505c5936a2469632f91224ff54f7b7 /doc
parentc207e8d223bddd3f391f9ce06f770901356fc50f (diff)
downloadandroid-node-v8-96165f9be2365eeb4c4669553cb7f12d6f5a374c.tar.gz
android-node-v8-96165f9be2365eeb4c4669553cb7f12d6f5a374c.tar.bz2
android-node-v8-96165f9be2365eeb4c4669553cb7f12d6f5a374c.zip
doc: minor clarification in the modules API doc.
PR-URL: https://github.com/nodejs/io.js/pull/1983 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'doc')
-rw-r--r--doc/api/modules.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown
index a5b9217057..ca8f02ce8d 100644
--- a/doc/api/modules.markdown
+++ b/doc/api/modules.markdown
@@ -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'`.