Skip to content

Commit

Permalink
doc: disambiguate pseudo-code statement
Browse files Browse the repository at this point in the history
the statement `set Y to be the file system root` can be wrongly
interpreted as the file system root being updated to match Y,
removing the `be` term removes this potential interpretation

PR-URL: #57092
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
  • Loading branch information
dario-piotrowicz authored and targos committed Feb 25, 2025
1 parent ac35106 commit 5a74568
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ require(X) from module at path Y
a. return the core module
b. STOP
2. If X begins with '/'
a. set Y to be the file system root
a. set Y to the file system root
3. If X begins with './' or '/' or '../'
a. LOAD_AS_FILE(Y + X)
b. LOAD_AS_DIRECTORY(Y + X)
Expand Down

0 comments on commit 5a74568

Please sign in to comment.