about summary refs log tree commit diff
path: root/src/comp/syntax/parse/lexer.rs
diff options
context:
space:
mode:
authorAustin Seipp <as@hacks.yi.org>2012-01-09 19:15:17 -0600
committerBrian Anderson <banderson@mozilla.com>2012-01-09 19:27:05 -0800
commita94b1ccacbc2869b6a67afcda98d7495c0086eb3 (patch)
tree46c25968d972b54ef5acb86a7c18ed1bcf541f3e /src/comp/syntax/parse/lexer.rs
parentaeae04cb49a3af321e75f839d409768014bd5169 (diff)
downloadrust-a94b1ccacbc2869b6a67afcda98d7495c0086eb3.tar.gz
rust-a94b1ccacbc2869b6a67afcda98d7495c0086eb3.zip
Change all uses of 'when' in alt-patterns to 'if'
Issue #1396
Diffstat (limited to 'src/comp/syntax/parse/lexer.rs')
-rw-r--r--src/comp/syntax/parse/lexer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs
index bee3d7783cb..21340168a23 100644
--- a/src/comp/syntax/parse/lexer.rs
+++ b/src/comp/syntax/parse/lexer.rs
@@ -182,7 +182,7 @@ fn scan_digits(rdr: reader, radix: uint) -> str {
         let c = rdr.curr();
         if c == '_' { rdr.bump(); cont; }
         alt char::maybe_digit(c) {
-          some(d) when (d as uint) < radix {
+          some(d) if (d as uint) < radix {
             str::push_byte(rslt, c as u8);
             rdr.bump();
           }