File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -482,18 +482,18 @@ impl SetMatches {
482
482
!self . 0 . is_empty ( )
483
483
}
484
484
485
- /// Whether all patterns in this set matched
485
+ /// Whether all patterns in this set matched.
486
486
///
487
487
/// # Example
488
488
///
489
489
/// ```
490
- /// use regex::RegexSet;
490
+ /// use regex::bytes:: RegexSet;
491
491
///
492
492
/// let set = RegexSet::new(&[
493
493
/// r"^foo",
494
494
/// r"[a-z]+\.com",
495
495
/// ]).unwrap();
496
- /// let matches = set.matches("foo.example.com");
496
+ /// let matches = set.matches(b "foo.example.com");
497
497
/// assert!(matches.matched_all());
498
498
/// ```
499
499
pub fn matched_all ( & self ) -> bool {
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ impl SetMatches {
478
478
!self . 0 . is_empty ( )
479
479
}
480
480
481
- /// Whether all patterns in this set matched
481
+ /// Whether all patterns in this set matched.
482
482
///
483
483
/// # Example
484
484
///
You can’t perform that action at this time.
0 commit comments