diff --git a/regex-lite/src/string.rs b/regex-lite/src/string.rs index 4e4de9068..81149cba6 100644 --- a/regex-lite/src/string.rs +++ b/regex-lite/src/string.rs @@ -1717,7 +1717,7 @@ impl<'h> Captures<'h> { /// /// This returns a tuple where the first element corresponds to the full /// substring of the haystack that matched the regex. The second element is - /// an array of substrings, with each corresponding to the to the substring + /// an array of substrings, with each corresponding to the substring /// that matched for a particular capture group. /// /// # Panics diff --git a/src/regex/bytes.rs b/src/regex/bytes.rs index 19f5701af..4ebdba509 100644 --- a/src/regex/bytes.rs +++ b/src/regex/bytes.rs @@ -1689,7 +1689,7 @@ impl<'h> Captures<'h> { /// /// This returns a tuple where the first element corresponds to the full /// substring of the haystack that matched the regex. The second element is - /// an array of substrings, with each corresponding to the to the substring + /// an array of substrings, with each corresponding to the substring /// that matched for a particular capture group. /// /// # Panics diff --git a/src/regex/string.rs b/src/regex/string.rs index 880d6082a..8802e28b8 100644 --- a/src/regex/string.rs +++ b/src/regex/string.rs @@ -1694,7 +1694,7 @@ impl<'h> Captures<'h> { /// /// This returns a tuple where the first element corresponds to the full /// substring of the haystack that matched the regex. The second element is - /// an array of substrings, with each corresponding to the to the substring + /// an array of substrings, with each corresponding to the substring /// that matched for a particular capture group. /// /// # Panics