mirror of
https://github.com/golang/go.git
synced 2025-05-20 06:43:26 +00:00
regexp: fix typo in the overview
Correct the slice expression in the description of Index functions. Change-Id: I97a1b670c4c7e600d858f6550b647f677ef90b41 Reviewed-on: https://go-review.googlesource.com/c/go/+/360058 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> Trust: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
parent
fd2e1e743a
commit
40e24a942b
@ -46,7 +46,7 @@
|
|||||||
// the match of the first parenthesized subexpression, and so on.
|
// the match of the first parenthesized subexpression, and so on.
|
||||||
//
|
//
|
||||||
// If 'Index' is present, matches and submatches are identified by byte index
|
// If 'Index' is present, matches and submatches are identified by byte index
|
||||||
// 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
|
||||||
// the nth submatch. The pair for n==0 identifies the match of the entire
|
// the nth submatch. The pair for n==0 identifies the match of the entire
|
||||||
// expression. If 'Index' is not present, the match is identified by the text
|
// expression. If 'Index' is not present, the match is identified by the text
|
||||||
// of the match/submatch. If an index is negative or text is nil, it means that
|
// of the match/submatch. If an index is negative or text is nil, it means that
|
||||||
|
Loading…
x
Reference in New Issue
Block a user