@@ -451,7 +451,7 @@ unsafe impl<'a> ReverseSearcher<'a> for CharSearcher<'a> {
451
451
452
452
impl < ' a > DoubleEndedSearcher < ' a > for CharSearcher < ' a > { }
453
453
454
- /// Searches for chars that are equal to a given char
454
+ /// Searches for chars that are equal to a given ` char`.
455
455
impl < ' a > Pattern < ' a > for char {
456
456
type Searcher = CharSearcher < ' a > ;
457
457
@@ -696,7 +696,7 @@ unsafe impl<'a, 'b> ReverseSearcher<'a> for CharSliceSearcher<'a, 'b> {
696
696
697
697
impl < ' a , ' b > DoubleEndedSearcher < ' a > for CharSliceSearcher < ' a , ' b > { }
698
698
699
- /// Searches for chars that are equal to any of the chars in the array
699
+ /// Searches for chars that are equal to any of the chars in the array.
700
700
impl < ' a , ' b > Pattern < ' a > for & ' b [ char ] {
701
701
pattern_methods ! ( CharSliceSearcher <' a, ' b>, MultiCharEqPattern , CharSliceSearcher ) ;
702
702
}
@@ -738,7 +738,7 @@ where
738
738
739
739
impl < ' a , F > DoubleEndedSearcher < ' a > for CharPredicateSearcher < ' a , F > where F : FnMut ( char ) -> bool { }
740
740
741
- /// Searches for chars that match the given predicate
741
+ /// Searches for chars that match the given predicate.
742
742
impl < ' a , F > Pattern < ' a > for F
743
743
where
744
744
F : FnMut ( char ) -> bool ,
@@ -771,7 +771,7 @@ impl<'a, 'b> Pattern<'a> for &'b str {
771
771
StrSearcher :: new ( haystack, self )
772
772
}
773
773
774
- /// Checks whether the pattern matches at the front of the haystack
774
+ /// Checks whether the pattern matches at the front of the haystack.
775
775
#[ inline]
776
776
fn is_prefix_of ( self , haystack : & ' a str ) -> bool {
777
777
haystack. as_bytes ( ) . starts_with ( self . as_bytes ( ) )
@@ -788,7 +788,7 @@ impl<'a, 'b> Pattern<'a> for &'b str {
788
788
}
789
789
}
790
790
791
- /// Checks whether the pattern matches at the back of the haystack
791
+ /// Checks whether the pattern matches at the back of the haystack.
792
792
#[ inline]
793
793
fn is_suffix_of ( self , haystack : & ' a str ) -> bool {
794
794
haystack. as_bytes ( ) . ends_with ( self . as_bytes ( ) )
0 commit comments