diff --git a/src/re_bytes.rs b/src/re_bytes.rs index 189bed5fd5..ca01e0ec98 100644 --- a/src/re_bytes.rs +++ b/src/re_bytes.rs @@ -119,7 +119,8 @@ impl Regex { RegexBuilder::new(re).build() } - /// Returns true if and only if the regex matches the string given. + /// Returns true if and only if there is a match for the regex in the + /// string given. /// /// It is recommended to use this method if all you need to do is test /// a match, since the underlying matching engine may be able to do less diff --git a/src/re_unicode.rs b/src/re_unicode.rs index 7a0e34951b..ea95c1b6df 100644 --- a/src/re_unicode.rs +++ b/src/re_unicode.rs @@ -175,7 +175,8 @@ impl Regex { RegexBuilder::new(re).build() } - /// Returns true if and only if the regex matches the string given. + /// Returns true if and only if there is a match for the regex in the + /// string given. /// /// It is recommended to use this method if all you need to do is test /// a match, since the underlying matching engine may be able to do less