chore: make FastAbs comment more easy to understand (#6692)

This commit is contained in:
WeidiDeng
2024-11-15 11:49:42 +08:00
committed by GitHub
parent 37f0c4bfae
commit 6028ff27fa
2 changed files with 6 additions and 2 deletions

View File

@ -18,8 +18,10 @@ import (
"path/filepath"
)
// FastAbs can't be optimized on Windows because the
// syscall.FullPath function takes an input.
// FastAbs can't be optimized on Windows because there
// are special file paths that require the use of syscall.FullPath
// to handle correctly.
// Just call stdlib's implementation which uses that function.
func FastAbs(path string) (string, error) {
return filepath.Abs(path)
}