make sure to_ascii_lowercase actually leaves upper-case non-ASCII characters alone
This commit is contained in:
parent
5d4aef6055
commit
7b97cf9431
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue