diff options
| author | Manish Goregaokar <manishsmail@gmail.com> | 2016-02-14 03:59:10 +0530 |
|---|---|---|
| committer | Manish Goregaokar <manishsmail@gmail.com> | 2016-02-14 05:06:34 +0530 |
| commit | a40f2b6e9282765e3ad4c0e7278a905f05bbdc30 (patch) | |
| tree | 35e236e38d4f3612766d83ba177c28e65cbe9e02 /src/libstd/ascii.rs | |
| parent | d5dddb4acd07c441561de312c86072b61e369dbb (diff) | |
| parent | 2f20d5aa5f3392a38643f17683dd25c1dd7062c2 (diff) | |
| download | rust-a40f2b6e9282765e3ad4c0e7278a905f05bbdc30.tar.gz rust-a40f2b6e9282765e3ad4c0e7278a905f05bbdc30.zip | |
Rollup merge of #31584 - tshepang:shorten, r=steveklabnik
Diffstat (limited to 'src/libstd/ascii.rs')
| -rw-r--r-- | src/libstd/ascii.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/ascii.rs b/src/libstd/ascii.rs index b5c01077a7b..8cabdc41a05 100644 --- a/src/libstd/ascii.rs +++ b/src/libstd/ascii.rs @@ -55,8 +55,8 @@ pub trait AsciiExt { /// let ascii = 'a'; /// let utf8 = '❤'; /// - /// assert_eq!(true, ascii.is_ascii()); - /// assert_eq!(false, utf8.is_ascii()) + /// assert!(ascii.is_ascii()); + /// assert!(!utf8.is_ascii()); /// ``` #[stable(feature = "rust1", since = "1.0.0")] fn is_ascii(&self) -> bool; @@ -114,9 +114,9 @@ pub trait AsciiExt { /// let ascii3 = 'A'; /// let ascii4 = 'z'; /// - /// assert_eq!(true, ascii1.eq_ignore_ascii_case(&ascii2)); - /// assert_eq!(true, ascii1.eq_ignore_ascii_case(&ascii3)); - /// assert_eq!(false, ascii1.eq_ignore_ascii_case(&ascii4)); + /// assert!(ascii1.eq_ignore_ascii_case(&ascii2)); + /// assert!(ascii1.eq_ignore_ascii_case(&ascii3)); + /// assert!(!ascii1.eq_ignore_ascii_case(&ascii4)); /// ``` #[stable(feature = "rust1", since = "1.0.0")] fn eq_ignore_ascii_case(&self, other: &Self) -> bool; |
