Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disambiguate the documentation of is_match #711

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/re_bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ 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
Expand Down
2 changes: 1 addition & 1 deletion src/re_unicode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ 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
Expand Down