File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,8 @@ pub trait AsciiExt {
55
55
/// let ascii = 'a';
56
56
/// let utf8 = '❤';
57
57
///
58
- /// assert_eq!(true, ascii.is_ascii());
59
- /// assert_eq!(false, utf8.is_ascii())
58
+ /// assert!( ascii.is_ascii());
59
+ /// assert!(! utf8.is_ascii());
60
60
/// ```
61
61
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
62
62
fn is_ascii ( & self ) -> bool ;
@@ -114,9 +114,9 @@ pub trait AsciiExt {
114
114
/// let ascii3 = 'A';
115
115
/// let ascii4 = 'z';
116
116
///
117
- /// assert_eq!(true, ascii1.eq_ignore_ascii_case(&ascii2));
118
- /// assert_eq!(true, ascii1.eq_ignore_ascii_case(&ascii3));
119
- /// assert_eq!(false, ascii1.eq_ignore_ascii_case(&ascii4));
117
+ /// assert!( ascii1.eq_ignore_ascii_case(&ascii2));
118
+ /// assert!( ascii1.eq_ignore_ascii_case(&ascii3));
119
+ /// assert!(! ascii1.eq_ignore_ascii_case(&ascii4));
120
120
/// ```
121
121
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
122
122
fn eq_ignore_ascii_case ( & self , other : & Self ) -> bool ;
You can’t perform that action at this time.
0 commit comments