From: Alan Donovan Date: Thu, 13 Sep 2018 15:15:30 +0000 (-0400) Subject: regexp: fix incorrect name in Match doc comment X-Git-Tag: go1.12beta1~1099 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8c610aa633167aef27964e314dda35a87d3da58b;p=gostls13.git regexp: fix incorrect name in Match doc comment Change-Id: I628aad9a3abe9cc0c3233f476960e53bd291eca9 Reviewed-on: https://go-review.googlesource.com/135235 Reviewed-by: Ralph Corderoy Reviewed-by: Ian Lance Taylor --- diff --git a/src/regexp/regexp.go b/src/regexp/regexp.go index 61ed9c5059..89bb975ac1 100644 --- a/src/regexp/regexp.go +++ b/src/regexp/regexp.go @@ -469,7 +469,7 @@ func MatchString(pattern string, s string) (matched bool, err error) { return re.MatchString(s), nil } -// MatchString reports whether the byte slice b +// Match reports whether the byte slice b // contains any match of the regular expression pattern. // More complicated queries need to use Compile and the full Regexp interface. func Match(pattern string, b []byte) (matched bool, err error) {