mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
doc: disambiguate pseudo-code statement
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: https://github.com/nodejs/node/pull/57092 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
@@ -346,7 +346,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)
|
||||
|
||||
Reference in New Issue
Block a user