aboutsummaryrefslogtreecommitdiff
path: root/src/path/filepath/path_unix.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/path/filepath/path_unix.go')
-rw-r--r--src/path/filepath/path_unix.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/path/filepath/path_unix.go b/src/path/filepath/path_unix.go
index 2d242cc0b5..dddcac0a5c 100644
--- a/src/path/filepath/path_unix.go
+++ b/src/path/filepath/path_unix.go
@@ -20,6 +20,8 @@ func volumeNameLen(path string) int {
}
// HasPrefix exists for historical compatibility and should not be used.
+//
+// Deprecated: Use strings.HasPrefix instead.
func HasPrefix(p, prefix string) bool {
return strings.HasPrefix(p, prefix)
}