Rollup merge of #61715 - RalfJung:test-ascii-lowercase, r=varkor

make sure make_ascii_lowercase actually leaves upper-case non-ASCII characters alone

Cc https://github.com/rust-lang/rust/pull/61677 @napen123
This commit is contained in:
Mazdak Farrokhzad 2019-06-11 17:14:09 +02:00 committed by GitHub
commit 231b0375f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4000,11 +4000,11 @@ pub fn make_ascii_uppercase(&mut self) {
/// # Examples
///
/// ```
/// let mut s = String::from("Grüße, Jürgen ❤");
/// let mut s = String::from("GRÜßE, JÜRGEN ❤");
///
/// s.make_ascii_lowercase();
///
/// assert_eq!("grüße, jürgen ❤", s);
/// assert_eq!("grÜße, jÜrgen ❤", s);
/// ```
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
pub fn make_ascii_lowercase(&mut self) {