From 216f3fef20b70bdb69de73c464c71207b91676a9 Mon Sep 17 00:00:00 2001 From: riyueguang Date: Fri, 26 Jul 2024 17:49:14 +0800 Subject: [PATCH] chore: fix some comments Signed-off-by: riyueguang --- regex-automata/src/util/look.rs | 2 +- regex-lite/src/string.rs | 2 +- src/regex/bytes.rs | 2 +- src/regex/string.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/regex-automata/src/util/look.rs b/regex-automata/src/util/look.rs index 73e51c0f6..2d9e32718 100644 --- a/regex-automata/src/util/look.rs +++ b/regex-automata/src/util/look.rs @@ -482,7 +482,7 @@ impl LookSet { /// assertions in this set that require tables that are not available, then /// this will return an error. /// - /// Specifically, this returns an error when the the + /// Specifically, this returns an error when the /// `unicode-word-boundary` feature is _not_ enabled _and_ this set /// contains a Unicode word boundary assertion. /// diff --git a/regex-lite/src/string.rs b/regex-lite/src/string.rs index 5fe30ade3..2e8dce896 100644 --- a/regex-lite/src/string.rs +++ b/regex-lite/src/string.rs @@ -329,7 +329,7 @@ impl Regex { /// The `0`th capture group is always unnamed, so it must always be /// accessed with `get(0)` or `[0]`. /// - /// Finally, one other way to to get the matched substrings is with the + /// Finally, one other way to get the matched substrings is with the /// [`Captures::extract`] API: /// /// ``` diff --git a/src/regex/bytes.rs b/src/regex/bytes.rs index 39af6e71c..05b94cf2d 100644 --- a/src/regex/bytes.rs +++ b/src/regex/bytes.rs @@ -336,7 +336,7 @@ impl Regex { /// The `0`th capture group is always unnamed, so it must always be /// accessed with `get(0)` or `[0]`. /// - /// Finally, one other way to to get the matched substrings is with the + /// Finally, one other way to get the matched substrings is with the /// [`Captures::extract`] API: /// /// ``` diff --git a/src/regex/string.rs b/src/regex/string.rs index fab178a68..bd78189e3 100644 --- a/src/regex/string.rs +++ b/src/regex/string.rs @@ -338,7 +338,7 @@ impl Regex { /// The `0`th capture group is always unnamed, so it must always be /// accessed with `get(0)` or `[0]`. /// - /// Finally, one other way to to get the matched substrings is with the + /// Finally, one other way to get the matched substrings is with the /// [`Captures::extract`] API: /// /// ```