Skip to content

Commit 35ab389

Browse files
committed
fixup! api: add SetMatches::matched_all
1 parent ef806b6 commit 35ab389

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/regexset/bytes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,18 +482,18 @@ impl SetMatches {
482482
!self.0.is_empty()
483483
}
484484

485-
/// Whether all patterns in this set matched
485+
/// Whether all patterns in this set matched.
486486
///
487487
/// # Example
488488
///
489489
/// ```
490-
/// use regex::RegexSet;
490+
/// use regex::bytes::RegexSet;
491491
///
492492
/// let set = RegexSet::new(&[
493493
/// r"^foo",
494494
/// r"[a-z]+\.com",
495495
/// ]).unwrap();
496-
/// let matches = set.matches("foo.example.com");
496+
/// let matches = set.matches(b"foo.example.com");
497497
/// assert!(matches.matched_all());
498498
/// ```
499499
pub fn matched_all(&self) -> bool {

src/regexset/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ impl SetMatches {
478478
!self.0.is_empty()
479479
}
480480

481-
/// Whether all patterns in this set matched
481+
/// Whether all patterns in this set matched.
482482
///
483483
/// # Example
484484
///

0 commit comments

Comments
 (0)