From daeb5c9e8f457235438a2b4be9824f0db8ad8adb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 14 Feb 2011 18:35:34 -0800 Subject: [PATCH] fix doc thanks Toshihiro --- doc/api/modules.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/modules.markdown b/doc/api/modules.markdown index 35cdbac8b4..55e2fdc114 100644 --- a/doc/api/modules.markdown +++ b/doc/api/modules.markdown @@ -242,7 +242,7 @@ then it does *not* add the full resolved path to where `./lib` is on the filesystem. Instead, it literally adds `'./lib'`, meaning that if you do `require('y.js')` in `/a/b/x.js`, then it'll look in `/a/b/lib/y.js`. If you then did `require('y.js')` in -`/l/m/n/o/p.js`, then it'd look in `/l/m/n/o/p/lib/y.js`. +`/l/m/n/o/p.js`, then it'd look in `/l/m/n/o/lib/y.js`. In practice, people have used this as an ad hoc way to bundle dependencies, but this technique is brittle.