]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix function name in comment
authorIan Lance Taylor <iant@golang.org>
Sat, 21 Mar 2020 23:57:26 +0000 (16:57 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 22 Mar 2020 01:21:05 +0000 (01:21 +0000)
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>
src/cmd/go/internal/str/path.go

index a4ffc5f131241bc1165a495df56f4ffa3e79c007..95d91a3332e2986a178c43f540761d8025d35614 100644 (file)
@@ -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) {