From 3ad7430f12e67423642bccb304f5520de2911258 Mon Sep 17 00:00:00 2001 From: kohta ito Date: Sat, 12 Nov 2016 16:18:05 +0900 Subject: [PATCH] doc: fix the index order in pseudocode of modules fix the index order in pseudocode of modules. PR-URL: https://github.com/nodejs/node/pull/9562 Reviewed-By: Shigeki Ohtsu Reviewed-By: Yosuke Furukawa Reviewed-By: Roman Reiss --- doc/api/modules.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index dd02fc372a6887..4b5fc133701245 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -181,9 +181,9 @@ NODE_MODULES_PATHS(START) 3. let DIRS = [] 4. while I >= 0, a. if PARTS[I] = "node_modules" CONTINUE - c. DIR = path join(PARTS[0 .. I] + "node_modules") - b. DIRS = DIRS + DIR - c. let I = I - 1 + b. DIR = path join(PARTS[0 .. I] + "node_modules") + c. DIRS = DIRS + DIR + d. let I = I - 1 5. return DIRS ```