From ab4c8d1f210a2e1011a4408476b2c708e64dcede Mon Sep 17 00:00:00 2001 From: denzenin Date: Mon, 3 Jun 2024 00:30:07 +0100 Subject: [PATCH] doc: fix duplicate phrasing typo PR #1198 --- regex-lite/src/string.rs | 4 ++-- src/regex/bytes.rs | 4 ++-- src/regex/string.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/regex-lite/src/string.rs b/regex-lite/src/string.rs index 4e4de9068..5fe30ade3 100644 --- a/regex-lite/src/string.rs +++ b/regex-lite/src/string.rs @@ -1717,8 +1717,8 @@ 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 - /// that matched for a particular capture group. + /// 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 7b7aad574..3de4022a8 100644 --- a/src/regex/bytes.rs +++ b/src/regex/bytes.rs @@ -1711,8 +1711,8 @@ 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 - /// that matched for a particular capture group. + /// 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 dba94d46e..fab178a68 100644 --- a/src/regex/string.rs +++ b/src/regex/string.rs @@ -1716,8 +1716,8 @@ 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 - /// that matched for a particular capture group. + /// an array of substrings, with each corresponding to the substring that + /// matched for a particular capture group. /// /// # Panics ///