From: Ian Lance Taylor Date: Sat, 21 Mar 2020 23:57:26 +0000 (-0700) Subject: cmd/go: fix function name in comment X-Git-Tag: go1.15beta1~801 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=2910c5b4a01a573ebc97744890a07c1a3122c67a;p=gostls13.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 TryBot-Result: Gobot Gobot Reviewed-by: Emmanuel Odeke --- diff --git a/src/cmd/go/internal/str/path.go b/src/cmd/go/internal/str/path.go index a4ffc5f131..95d91a3332 100644 --- a/src/cmd/go/internal/str/path.go +++ b/src/cmd/go/internal/str/path.go @@ -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) {