commit 61bf12fa612cc9c962af7eb0c6b288727b97e95a
parent 53150ab548748e824ffd119661f997979049a779
Author: Drew DeVault <sir@cmpwn.com>
Date: Sat, 8 Jan 2022 17:49:53 +0100
os: correct reference to fs::realpath
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/os/fs.ha b/os/fs.ha
@@ -91,7 +91,7 @@ export fn create(
// Canonicalizes a path in this filesystem by resolving all symlinks and
// collapsing any "." or ".." path components.
//
-// This function is a thin shim over [[fs::resolve]], and the return value is
-// statically allocated by [[fs::resolve]]. Thus, calls to this function or to
-// [[fs::resolve]] will overwrite the return value of either function.
+// This function is a thin shim over [[fs::realpath]], and the return value is
+// statically allocated by [[fs::realpath]]. Thus, calls to this function or to
+// [[fs::realpath]] will overwrite the return value of either function.
export fn realpath(path: str) (str | fs::error) = fs::realpath(cwd, path);