@@ -451,7 +451,7 @@ unsafe impl<'a> ReverseSearcher<'a> for CharSearcher<'a> {
451451
452452impl < ' a > DoubleEndedSearcher < ' a > for CharSearcher < ' a > { }
453453
454- /// Searches for chars that are equal to a given char
454+ /// Searches for chars that are equal to a given ` char`.
455455impl < ' a > Pattern < ' a > for char {
456456 type Searcher = CharSearcher < ' a > ;
457457
@@ -696,7 +696,7 @@ unsafe impl<'a, 'b> ReverseSearcher<'a> for CharSliceSearcher<'a, 'b> {
696696
697697impl < ' a , ' b > DoubleEndedSearcher < ' a > for CharSliceSearcher < ' a , ' b > { }
698698
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.
700700impl < ' a , ' b > Pattern < ' a > for & ' b [ char ] {
701701 pattern_methods ! ( CharSliceSearcher <' a, ' b>, MultiCharEqPattern , CharSliceSearcher ) ;
702702}
@@ -738,7 +738,7 @@ where
738738
739739impl < ' a , F > DoubleEndedSearcher < ' a > for CharPredicateSearcher < ' a , F > where F : FnMut ( char ) -> bool { }
740740
741- /// Searches for chars that match the given predicate
741+ /// Searches for chars that match the given predicate.
742742impl < ' a , F > Pattern < ' a > for F
743743where
744744 F : FnMut ( char ) -> bool ,
@@ -771,7 +771,7 @@ impl<'a, 'b> Pattern<'a> for &'b str {
771771 StrSearcher :: new ( haystack, self )
772772 }
773773
774- /// Checks whether the pattern matches at the front of the haystack
774+ /// Checks whether the pattern matches at the front of the haystack.
775775 #[ inline]
776776 fn is_prefix_of ( self , haystack : & ' a str ) -> bool {
777777 haystack. as_bytes ( ) . starts_with ( self . as_bytes ( ) )
@@ -788,7 +788,7 @@ impl<'a, 'b> Pattern<'a> for &'b str {
788788 }
789789 }
790790
791- /// Checks whether the pattern matches at the back of the haystack
791+ /// Checks whether the pattern matches at the back of the haystack.
792792 #[ inline]
793793 fn is_suffix_of ( self , haystack : & ' a str ) -> bool {
794794 haystack. as_bytes ( ) . ends_with ( self . as_bytes ( ) )
0 commit comments