Use inclusive range for is_private_use function
This commit is contained in:
parent
a9733e9906
commit
0cb2763160
1 changed files with 1 additions and 1 deletions
|
|
@ -842,5 +842,5 @@ pub fn icon(icon: window::Icon) -> Option<winit::window::Icon> {
|
||||||
|
|
||||||
// See: https://en.wikipedia.org/wiki/Private_Use_Areas
|
// See: https://en.wikipedia.org/wiki/Private_Use_Areas
|
||||||
fn is_private_use(c: char) -> bool {
|
fn is_private_use(c: char) -> bool {
|
||||||
c >= '\u{E000}' && c <= '\u{F8FF}'
|
('\u{E000}'..='\u{F8FF}').contains(&c)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue