aboutsummaryrefslogtreecommitdiff
path: root/src/path
diff options
context:
space:
mode:
authorJaana Burcu Dogan <jbd@google.com>2016-09-01 23:28:26 -0700
committerJaana Burcu Dogan <jbd@google.com>2016-09-02 20:52:23 +0000
commit0318d80e51ff148f3a94008b59b36d601846152e (patch)
tree4e5c964ded31e526a60bb6c8430875ccca73e8d2 /src/path
parent0e7e43688d2ad8b6c78bb865591eec96b6ce0e60 (diff)
downloadgo-0318d80e51ff148f3a94008b59b36d601846152e.tar.xz
path/filepath: use new style deprecation message
Change-Id: I242a8960583e333f372929aad4adb8efbe441cd4 Reviewed-on: https://go-review.googlesource.com/28413 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Jaana Burcu Dogan <jbd@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/path')
-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)
}