Skip to content

Commit 180345a

Browse files
committed
use inclusive range patterns
1 parent 2012262 commit 180345a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1273,10 +1273,10 @@ where
12731273
#[inline]
12741274
fn is_whitespace(c: char) -> bool {
12751275
match c {
1276-
' ' | '\x09'...'\x0d' => true,
1276+
' ' | '\x09'..='\x0d' => true,
12771277
_ if c > '\x7f' => match c {
12781278
'\u{0085}' | '\u{00a0}' | '\u{1680}' => true,
1279-
'\u{2000}'...'\u{200a}' => true,
1279+
'\u{2000}'..='\u{200a}' => true,
12801280
'\u{2028}' | '\u{2029}' | '\u{202f}' | '\u{205f}' => true,
12811281
'\u{3000}' => true,
12821282
_ => false,

0 commit comments

Comments
 (0)