summaryrefslogtreecommitdiff
path: root/src/path/path.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/path/path.go')
-rw-r--r--src/path/path.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path/path.go b/src/path/path.go
index 98a6d52922..3f0828c44a 100644
--- a/src/path/path.go
+++ b/src/path/path.go
@@ -192,7 +192,7 @@ func Base(path string) string {
return path
}
-// IsAbs returns true if the path is absolute.
+// IsAbs reports whether the path is absolute.
func IsAbs(path string) bool {
return len(path) > 0 && path[0] == '/'
}