Skip to content

Commit

Permalink
Rollup merge of rust-lang#61715 - RalfJung:test-ascii-lowercase, r=va…
Browse files Browse the repository at this point in the history
…rkor

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

Cc rust-lang#61677 @napen123
  • Loading branch information
Centril authored Jun 11, 2019
2 parents 1a4002b + 7b97cf9 commit 69b12cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libcore/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4000,11 +4000,11 @@ impl str {
/// # 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) {
Expand Down

0 comments on commit 69b12cf

Please sign in to comment.