Skip to content

Commit a40f2b6

Browse files
committed
Rollup merge of rust-lang#31584 - tshepang:shorten, r=steveklabnik
2 parents d5dddb4 + 2f20d5a commit a40f2b6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/libstd/ascii.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ pub trait AsciiExt {
5555
/// let ascii = 'a';
5656
/// let utf8 = '❤';
5757
///
58-
/// assert_eq!(true, ascii.is_ascii());
59-
/// assert_eq!(false, utf8.is_ascii())
58+
/// assert!(ascii.is_ascii());
59+
/// assert!(!utf8.is_ascii());
6060
/// ```
6161
#[stable(feature = "rust1", since = "1.0.0")]
6262
fn is_ascii(&self) -> bool;
@@ -114,9 +114,9 @@ pub trait AsciiExt {
114114
/// let ascii3 = 'A';
115115
/// let ascii4 = 'z';
116116
///
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));
120120
/// ```
121121
#[stable(feature = "rust1", since = "1.0.0")]
122122
fn eq_ignore_ascii_case(&self, other: &Self) -> bool;

0 commit comments

Comments
 (0)