Skip to content

Commit ab4c8d1

Browse files
authored
doc: fix duplicate phrasing typo
PR #1198
1 parent ddeb85e commit ab4c8d1

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

regex-lite/src/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1717,8 +1717,8 @@ impl<'h> Captures<'h> {
17171717
///
17181718
/// This returns a tuple where the first element corresponds to the full
17191719
/// substring of the haystack that matched the regex. The second element is
1720-
/// an array of substrings, with each corresponding to the to the substring
1721-
/// that matched for a particular capture group.
1720+
/// an array of substrings, with each corresponding to the substring that
1721+
/// matched for a particular capture group.
17221722
///
17231723
/// # Panics
17241724
///

src/regex/bytes.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1711,8 +1711,8 @@ impl<'h> Captures<'h> {
17111711
///
17121712
/// This returns a tuple where the first element corresponds to the full
17131713
/// substring of the haystack that matched the regex. The second element is
1714-
/// an array of substrings, with each corresponding to the to the substring
1715-
/// that matched for a particular capture group.
1714+
/// an array of substrings, with each corresponding to the substring that
1715+
/// matched for a particular capture group.
17161716
///
17171717
/// # Panics
17181718
///

src/regex/string.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1716,8 +1716,8 @@ impl<'h> Captures<'h> {
17161716
///
17171717
/// This returns a tuple where the first element corresponds to the full
17181718
/// substring of the haystack that matched the regex. The second element is
1719-
/// an array of substrings, with each corresponding to the to the substring
1720-
/// that matched for a particular capture group.
1719+
/// an array of substrings, with each corresponding to the substring that
1720+
/// matched for a particular capture group.
17211721
///
17221722
/// # Panics
17231723
///

0 commit comments

Comments
 (0)