From 5a74568320a224ac6f16ea6b8f1b8d5ce62fc7d7 Mon Sep 17 00:00:00 2001 From: Dario Piotrowicz Date: Tue, 18 Feb 2025 13:13:29 +0000 Subject: [PATCH] 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 Reviewed-By: Antoine du Hamel --- doc/api/modules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/modules.md b/doc/api/modules.md index 4d31a8bf1c3daa..c5b034cf9da3de 100644 --- a/doc/api/modules.md +++ b/doc/api/modules.md @@ -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)