Clean up character pattern in float.rs
This is actually a test to see if I fixed the bot.
This commit is contained in:
parent
b0a72ee06a
commit
6c4c33e009
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user