doc: fix modules require.resolve documentation
authorMathias Schreck <schreck.mathias@googlemail.com>
Wed, 3 Sep 2014 11:45:36 +0000 (13:45 +0200)
committerFedor Indutny <fedor@indutny.com>
Mon, 15 Sep 2014 13:17:05 +0000 (17:17 +0400)
commit7c5fabe4053c82806b0a22437bceab8aa7465b78
tree970a4c49f82c13584c919d707f118e5b6597cf57
parent627c1a92ebc3be841becd01937aa273bc73ba0a5
doc: fix modules require.resolve documentation

The behavior of the `node_modules` lookup algorithm was
changed in #1177, but the documentation was not updated completely
to describe the new behavior.

The pseudocode of the lookup algorithm did not metion that
`index.json` is tried to be loaded if you require a folder.

Reviewed-By: Fedor Indutny <fedor@indutny.com>
doc/api/modules.markdown