]> Cypherpunks repositories - gostls13.git/commitdiff
regexp: add the missing is
authorluochuanhang <chuanhangluo@gmail.com>
Tue, 18 Jan 2022 01:59:20 +0000 (01:59 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 19 Jan 2022 22:56:09 +0000 (22:56 +0000)
Change-Id: I23264972329aa3414067cd0e0986b69bb39bbeb5
GitHub-Last-Rev: d1d668a3cbe852d9a06f03369e7e635232d85139
GitHub-Pull-Request: golang/go#50650
Reviewed-on: https://go-review.googlesource.com/c/go/+/378935
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Daniel Martí <mvdan@mvdan.cc>

src/regexp/regexp.go

index af7259c9bfd2cbd0e2d9f3b1f587db97de612f35..f975bb38948883ca60d269da27832c8314762085 100644 (file)
@@ -42,7 +42,7 @@
 // successive submatches of the expression. Submatches are matches of
 // parenthesized subexpressions (also known as capturing groups) within the
 // regular expression, numbered from left to right in order of opening
-// parenthesis. Submatch 0 is the match of the entire expression, submatch 1
+// parenthesis. Submatch 0 is the match of the entire expression, submatch 1 is
 // the match of the first parenthesized subexpression, and so on.
 //
 // If 'Index' is present, matches and submatches are identified by byte index