8000 Some edition fixes · unicode-rs/unicode-segmentation@3be7fa9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3be7fa9

Browse files
committed
Some edition fixes
1 parent 4390d48 commit 3be7fa9

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
@@ -221,7 +221,7 @@ def emit_util_mod(f):
221221
#[inline]
222222
fn is_alphabetic(c: char) -> bool {
223223
match c {
224-
'a' ... 'z' | 'A' ... 'Z' => true,
224+
'a' ...\= 'z' | 'A' ..= 'Z' => true,
225225
c if c > '\x7f' => super::derived_property::Alphabetic(c),
226226
_ => false,
227227
}
@@ -230,7 +230,7 @@ def emit_util_mod(f):
230230
#[inline]
231231
fn is_numeric(c: char) -> bool {
232232
match c {
233-
'0' ... '9' => true,
233+
'0' ..= '9' => true,
234234
c if c > '\x7f' => super::general_category::N(c),
235235
_ => false,
236236
}

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)
0