From 2b152c6a6cf6f4688d4494b054f09c40082d0211 Mon Sep 17 00:00:00 2001 From: denzenin Date: Sun, 2 Jun 2024 18:26:56 +0100 Subject: [PATCH 1/2] [docs] Fix words duplication in docs `extract` --- regex-lite/src/string.rs | 2 +- src/regex/bytes.rs | 2 +- src/regex/string.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 7b7aad574..5d06cb86f 100644 --- a/src/regex/bytes.rs +++ b/src/regex/bytes.rs @@ -1711,7 +1711,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 dba94d46e..065e79b41 100644 --- a/src/regex/string.rs +++ b/src/regex/string.rs @@ -1716,7 +1716,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 From be652d7ac892f9cfb60eaf91b9837177b100fa01 Mon Sep 17 00:00:00 2001 From: denzenin Date: Mon, 3 Jun 2024 00:09:45 +0100 Subject: [PATCH 2/2] reflow text in the comments --- 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 81149cba6..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 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 5d06cb86f..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 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 065e79b41..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 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 ///