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:
Ian Lance Taylor 2020-03-21 16:57:26 -07:00
parent 36b815edd6
commit 2910c5b4a0
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
) )
// HasPath reports whether the slash-separated path s // HasPathPrefix reports whether the slash-separated path s
// begins with the elements in prefix. // begins with the elements in prefix.
func HasPathPrefix(s, prefix string) bool { func HasPathPrefix(s, prefix string) bool {
if len(s) == len(prefix) { if len(s) == len(prefix) {