diff options
Diffstat (limited to 'libgo/go/path/filepath/path_plan9.go')
-rw-r--r-- | libgo/go/path/filepath/path_plan9.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/path/filepath/path_plan9.go b/libgo/go/path/filepath/path_plan9.go index 60d46d9d42..ec792fc831 100644 --- a/libgo/go/path/filepath/path_plan9.go +++ b/libgo/go/path/filepath/path_plan9.go @@ -18,6 +18,9 @@ func volumeNameLen(path string) int { } // HasPrefix exists for historical compatibility and should not be used. +// +// Deprecated: HasPrefix does not respect path boundaries and +// does not ignore case when required. func HasPrefix(p, prefix string) bool { return strings.HasPrefix(p, prefix) } |