Skip to content

Commit 9289c55

Browse files
tormolThomas Bahn
authored andcommitted
Fix AsciiExt::to_ascii_lowercase() impl for AsciiChar converting to uppercase
Introduced by commit ddf9c7d / version 0.7.0.
1 parent 206dd96 commit 9289c55

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

RELEASES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
Unreleased
2+
==========
3+
* Fix the implementation of `AsciiExt::to_ascii_lowercase()` for `AsciiChar` converting to uppercase. (introduced in 0.7.0)
4+
15
Version 0.7.0 (2016-06-25)
26
==========
37
* Rename `Ascii` to `AsciiChar` and convert it into an enum. (with a variant for every ASCII character)

src/ascii_char.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ impl AsciiExt for AsciiChar {
477477
}
478478

479479
fn to_ascii_lowercase(&self) -> AsciiChar {
480-
unsafe{ self.as_byte().to_ascii_uppercase().to_ascii_char_unchecked() }
480+
unsafe{ self.as_byte().to_ascii_lowercase().to_ascii_char_unchecked() }
481481
}
482482

483483
fn eq_ignore_ascii_case(&self, other: &Self) -> bool {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy