diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-21 21:06:54 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-10-21 21:06:54 +0200 |
| commit | 6c4c33e0092ac14d75f1667ae4dcafeec9728273 (patch) | |
| tree | 5a607fa00015ea5270dbf9c1508061975987eaab /src/lib | |
| parent | b0a72ee06a5ac28e18b8a549132eda23e32856c9 (diff) | |
| download | rust-6c4c33e0092ac14d75f1667ae4dcafeec9728273.tar.gz rust-6c4c33e0092ac14d75f1667ae4dcafeec9728273.zip | |
Clean up character pattern in float.rs
This is actually a test to see if I fixed the bot.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/float.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/float.rs b/src/lib/float.rs index 928f33ecc02..1d444b3111a 100644 --- a/src/lib/float.rs +++ b/src/lib/float.rs @@ -64,7 +64,7 @@ fn from_str(num: str) -> float { c = char_range.ch; pos = char_range.next; alt c { - '0' | '1' | '2' | '3' | '4' | '5' | '6'| '7' | '8' | '9' { + '0' to '9' { total = total * 10f; total += ((c as int) - ('0' as int)) as float; } |
