diff --git a/regex-lite/src/string.rs b/regex-lite/src/string.rs index 91b81d008..1c6eb4ab9 100644 --- a/regex-lite/src/string.rs +++ b/regex-lite/src/string.rs @@ -1186,8 +1186,8 @@ impl Regex { /// To create a `CaptureLocations` value, use the /// [`Regex::capture_locations`] method. /// - /// This also the overall match if one was found. When a match is found, - /// its offsets are also always stored in `locs` at index `0`. + /// This also returns the overall match if one was found. When a match is + /// found, its offsets are also always stored in `locs` at index `0`. /// /// # Panics /// diff --git a/src/regex/bytes.rs b/src/regex/bytes.rs index 6522ee7e3..03982544b 100644 --- a/src/regex/bytes.rs +++ b/src/regex/bytes.rs @@ -1162,8 +1162,8 @@ impl Regex { /// To create a `CaptureLocations` value, use the /// [`Regex::capture_locations`] method. /// - /// This also the overall match if one was found. When a match is found, - /// its offsets are also always stored in `locs` at index `0`. + /// This also returns the overall match if one was found. When a match is + /// found, its offsets are also always stored in `locs` at index `0`. /// /// # Example /// diff --git a/src/regex/string.rs b/src/regex/string.rs index 65a76740e..b9a3c3390 100644 --- a/src/regex/string.rs +++ b/src/regex/string.rs @@ -1153,8 +1153,8 @@ impl Regex { /// To create a `CaptureLocations` value, use the /// [`Regex::capture_locations`] method. /// - /// This also the overall match if one was found. When a match is found, - /// its offsets are also always stored in `locs` at index `0`. + /// This also returns the overall match if one was found. When a match is + /// found, its offsets are also always stored in `locs` at index `0`. /// /// # Panics ///