Skip to content

Commit f77fe64

Browse files
Ayase-252ljharbbl-ue
committed
fixup: take advice from review
Co-authored-by: Jordan Harband <[email protected]> Co-authored-by: Christopher Beeson <[email protected]>
1 parent 74d80b0 commit f77fe64

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

doc/api/modules.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,9 @@ NODE_MODULES_PATHS(START)
201201
4. while I >= 0,
202202
a. if PARTS[I] = "node_modules" CONTINUE
203203
b. DIR = path join(PARTS[0 .. I] + "node_modules")
204-
c. DIRS = DIRS + DIR
204+
c. DIRS = DIR + DIRS
205205
d. let I = I - 1
206-
5. DIRS = DIRS.concat(GLOBAL_FOLDERS)
207-
6. return DIRS
206+
5. return DIRS.concat(GLOBAL_FOLDERS)
208207

209208
LOAD_PACKAGE_IMPORTS(X, DIR)
210209
1. Find the closest package scope SCOPE to DIR.

0 commit comments

Comments
 (0)