mirror of https://github.com/golang/go.git
cmd/go: fix function name in comment
Fixes #37991 Change-Id: Ica58223f8564ec5d501d5b90b4258ffb78c42af1 Reviewed-on: https://go-review.googlesource.com/c/go/+/224587 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
This commit is contained in:
parent
36b815edd6
commit
2910c5b4a0
|
|
@ -10,7 +10,7 @@ import (
|
|||
"strings"
|
||||
)
|
||||
|
||||
// HasPath reports whether the slash-separated path s
|
||||
// HasPathPrefix reports whether the slash-separated path s
|
||||
// begins with the elements in prefix.
|
||||
func HasPathPrefix(s, prefix string) bool {
|
||||
if len(s) == len(prefix) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue