We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd2e1e7 commit 40e24a9Copy full SHA for 40e24a9
src/regexp/regexp.go
@@ -46,7 +46,7 @@
46
// the match of the first parenthesized subexpression, and so on.
47
//
48
// If 'Index' is present, matches and submatches are identified by byte index
49
-// pairs within the input string: result[2*n:2*n+1] identifies the indexes of
+// pairs within the input string: result[2*n:2*n+2] identifies the indexes of
50
// the nth submatch. The pair for n==0 identifies the match of the entire
51
// expression. If 'Index' is not present, the match is identified by the text
52
// of the match/submatch. If an index is negative or text is nil, it means that
0 commit comments