Commit 0318d80e authored by Jaana Burcu Dogan's avatar Jaana Burcu Dogan

path/filepath: use new style deprecation message

Change-Id: I242a8960583e333f372929aad4adb8efbe441cd4
Reviewed-on: https://go-review.googlesource.com/28413Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Jaana Burcu Dogan <jbd@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 0e7e4368
......@@ -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)
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment