diff options
| author | bors <bors@rust-lang.org> | 2013-09-12 11:56:00 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-09-12 11:56:00 -0700 |
| commit | a6be8d353bc25e160bc988e91744571547d12cab (patch) | |
| tree | 49b8ed51846ae7b9c9635dca944b71637851808e /src/libstd | |
| parent | 248765a746237e7292d30dce072799e076e4f9cf (diff) | |
| parent | a018a5c3433e20a56f642082586f4e4d28469381 (diff) | |
| download | rust-a6be8d353bc25e160bc988e91744571547d12cab.tar.gz rust-a6be8d353bc25e160bc988e91744571547d12cab.zip | |
auto merge of #9140 : alexcrichton/rust/issue-9119, r=huonw
Closes #9119
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/fmt/parse.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/fmt/parse.rs b/src/libstd/fmt/parse.rs index fd0e86d7a31..9888af9313b 100644 --- a/src/libstd/fmt/parse.rs +++ b/src/libstd/fmt/parse.rs @@ -554,7 +554,7 @@ impl<'self> Parser<'self> { /// characters. fn word(&mut self) -> &'self str { let start = match self.cur.clone().next() { - Some((pos, c)) if char::is_alphabetic(c) => { + Some((pos, c)) if char::is_XID_start(c) => { self.cur.next(); pos } @@ -563,7 +563,7 @@ impl<'self> Parser<'self> { let mut end; loop { match self.cur.clone().next() { - Some((_, c)) if char::is_alphanumeric(c) => { + Some((_, c)) if char::is_XID_continue(c) => { self.cur.next(); } Some((pos, _)) => { end = pos; break } |
