diff --git a/doc/api/modules.md b/doc/api/modules.md index 66ac1ce22c2bca..e496dbe1ac52e2 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 ```