From 0318d80e51ff148f3a94008b59b36d601846152e Mon Sep 17 00:00:00 2001 From: Jaana Burcu Dogan Date: Thu, 1 Sep 2016 23:28:26 -0700 Subject: [PATCH] path/filepath: use new style deprecation message Change-Id: I242a8960583e333f372929aad4adb8efbe441cd4 Reviewed-on: https://go-review.googlesource.com/28413 Reviewed-by: Brad Fitzpatrick Run-TryBot: Jaana Burcu Dogan TryBot-Result: Gobot Gobot --- src/path/filepath/path_unix.go | 2 ++ 1 file changed, 2 insertions(+) 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) } -- 2.48.1