Skip to content

Commit d04abd4

Browse files
committed
Change range patters to non-deprecated
1 parent 3b75ee1 commit d04abd4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

scripts/unicode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def emit_util_mod(f):
229229
#[inline]
230230
fn is_alphabetic(c: char) -> bool {
231231
match c {
232-
'a' ... 'z' | 'A' ... 'Z' => true,
232+
'a' ..= 'z' | 'A' ..= 'Z' => true,
233233
c if c > '\x7f' => super::derived_property::Alphabetic(c),
234234
_ => false,
235235
}
@@ -238,7 +238,7 @@ def emit_util_mod(f):
238238
#[inline]
239239
fn is_numeric(c: char) -> bool {
240240
match c {
241-
'0' ... '9' => true,
241+
'0' ..= '9' => true,
242242
c if c > '\x7f' => super::general_category::N(c),
243243
_ => false,
244244
}

src/tables.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ pub mod util {
3030
#[inline]
3131
fn is_alphabetic(c: char) -> bool {
3232
match c {
33-
'a' ... 'z' | 'A' ... 'Z' => true,
33+
'a' ..= 'z' | 'A' ..= 'Z' => true,
3434
c if c > '' => super::derived_property::Alphabetic(c),
3535
_ => false,
3636
}
@@ -39,7 +39,7 @@ pub mod util {
3939
#[inline]
4040
fn is_numeric(c: char) -> bool {
4141
match c {
42-
'0' ... '9' => true,
42+
'0' ..= '9' => true,
4343
c if c > '' => super::general_category::N(c),
4444
_ => false,
4545
}

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