]> Cypherpunks repositories - gostls13.git/commitdiff
regexp: fix incorrect name in Match doc comment
authorAlan Donovan <adonovan@google.com>
Thu, 13 Sep 2018 15:15:30 +0000 (11:15 -0400)
committerAlan Donovan <adonovan@google.com>
Thu, 13 Sep 2018 16:29:06 +0000 (16:29 +0000)
Change-Id: I628aad9a3abe9cc0c3233f476960e53bd291eca9
Reviewed-on: https://go-review.googlesource.com/135235
Reviewed-by: Ralph Corderoy <ralph@inputplus.co.uk>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/regexp/regexp.go

index 61ed9c5059f35e2ec65d149c8a1078f64a7b29a6..89bb975ac1fd6a49938854be70c3aec6103ecf84 100644 (file)
@@ -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) {