From 2910c5b4a01a573ebc97744890a07c1a3122c67a Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 21 Mar 2020 16:57:26 -0700 Subject: [PATCH] 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 --- src/cmd/go/internal/str/path.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.50.0