Skip to content

Commit 7b97cf9

Browse files
committed
make sure to_ascii_lowercase actually leaves upper-case non-ASCII characters alone
1 parent 5d4aef6 commit 7b97cf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/libcore/str/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4000,11 +4000,11 @@ impl str {
40004000
/// # Examples
40014001
///
40024002
/// ```
4003-
/// let mut s = String::from("Grüße, Jürgen ❤");
4003+
/// let mut s = String::from("GRÜßE, JÜRGEN ❤");
40044004
///
40054005
/// s.make_ascii_lowercase();
40064006
///
4007-
/// assert_eq!("grüße, jürgen ❤", s);
4007+
/// assert_eq!("grÜße, jÜrgen ❤", s);
40084008
/// ```
40094009
#[stable(feature = "ascii_methods_on_intrinsics", since = "1.23.0")]
40104010
pub fn make_ascii_lowercase(&mut self) {

0 commit comments

Comments
 (0)