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) }