]> Cypherpunks repositories - gostls13.git/commitdiff
path/filepath: use new style deprecation message
authorJaana Burcu Dogan <jbd@google.com>
Fri, 2 Sep 2016 06:28:26 +0000 (23:28 -0700)
committerJaana Burcu Dogan <jbd@google.com>
Fri, 2 Sep 2016 20:52:23 +0000 (20:52 +0000)
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>

src/path/filepath/path_unix.go

index 2d242cc0b5d798320cbad85599953188e9d82be6..dddcac0a5c774f9b7179f889f545d6e72a062516 100644 (file)
@@ -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)
 }