From 96165f9be2365eeb4c4669553cb7f12d6f5a374c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=BA=D0=BE=D0=B2=D0=BE=D1=80=D0=BE=D0=B4=D0=B0=20?= =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=90=D0=BD=D0=B4=D1=80?= =?UTF-8?q?=D0=B5=D0=B5=D0=B2=D0=B8=D1=87?= Date: Mon, 15 Jun 2015 14:45:34 +0300 Subject: [PATCH] doc: minor clarification in the modules API doc. PR-URL: https://github.com/nodejs/io.js/pull/1983 Reviewed-By: Jeremiah Senkpiel Reviewed-By: Ben Noordhuis --- doc/api/modules.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown index a5b92170575045..ca8f02ce8dbe7a 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'`.