Skip to content

Commit 31d3864

Browse files
jkremstargos
authored andcommitted
doc: fix numbering in require algorithm
Refs: #29327 PR-URL: #30117 Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent df86793 commit 31d3864

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/modules.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ require(X) from module at path Y
160160
a. LOAD_AS_FILE(Y + X)
161161
b. LOAD_AS_DIRECTORY(Y + X)
162162
c. THROW "not found"
163-
5. LOAD_NODE_MODULES(X, dirname(Y))
164-
4. LOAD_SELF_REFERENCE(X, dirname(Y))
163+
4. LOAD_NODE_MODULES(X, dirname(Y))
164+
5. LOAD_SELF_REFERENCE(X, dirname(Y))
165165
6. THROW "not found"
166166
167167
LOAD_AS_FILE(X)
@@ -223,8 +223,8 @@ LOAD_NODE_MODULES(X, START)
223223
1. let DIRS = NODE_MODULES_PATHS(START)
224224
2. for each DIR in DIRS:
225225
a. let FILE_PATH = RESOLVE_BARE_SPECIFIER(DIR, X)
226-
a. LOAD_AS_FILE(FILE_PATH)
227-
b. LOAD_AS_DIRECTORY(FILE_PATH)
226+
b. LOAD_AS_FILE(FILE_PATH)
227+
c. LOAD_AS_DIRECTORY(FILE_PATH)
228228
229229
RESOLVE_BARE_SPECIFIER(DIR, X)
230230
1. Try to interpret X as a combination of name and subpath where the name

0 commit comments

Comments
 (0)