Skip to content

Commit 149c976

Browse files
committed
Merge branch 'unicode_perf' into json_perf
2 parents 37494d3 + 52949fb commit 149c976

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libstd/char.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ pub fn is_uppercase(c: char) -> bool { general_category::Lu(c) }
8282
///
8383
#[inline]
8484
pub fn is_whitespace(c: char) -> bool {
85-
('\x09' <= c && c <= '\x0d')
85+
c == ' '
86+
|| ('\x09' <= c && c <= '\x0d')
8687
|| general_category::Zs(c)
8788
|| general_category::Zl(c)
8889
|| general_category::Zp(c)

0 commit comments

Comments
 (0)