Clean up character pattern in float.rs

This is actually a test to see if I fixed the bot.
This commit is contained in:
Marijn Haverbeke 2011-10-21 21:06:54 +02:00
parent b0a72ee06a
commit 6c4c33e009

View file

@ -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;
}