diff options
author | Alan Donovan <adonovan@google.com> | 2018-09-13 11:15:30 -0400 |
---|---|---|
committer | Alan Donovan <adonovan@google.com> | 2018-09-13 16:29:06 +0000 |
commit | 8c610aa633167aef27964e314dda35a87d3da58b (patch) | |
tree | 840cda7413725b48e8966d8ee753089fac7b1285 /src/regexp | |
parent | 691f5c34ad7b7d676644dd749bc4ddb5d20b90d0 (diff) | |
download | go-8c610aa633167aef27964e314dda35a87d3da58b.tar.gz go-8c610aa633167aef27964e314dda35a87d3da58b.zip |
regexp: fix incorrect name in Match doc comment
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>
Diffstat (limited to 'src/regexp')
-rw-r--r-- | src/regexp/regexp.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |