Skip to content

Commit

Permalink
path/filepath: use new style deprecation message
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
rakyll committed Sep 2, 2016
1 parent 0e7e436 commit 0318d80
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/path/filepath/path_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 0318d80

Please sign in to comment.