Skip to content

Commit 6c4c33e

Browse files
committed
Clean up character pattern in float.rs
This is actually a test to see if I fixed the bot.
1 parent b0a72ee commit 6c4c33e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/float.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ fn from_str(num: str) -> float {
6464
c = char_range.ch;
6565
pos = char_range.next;
6666
alt c {
67-
'0' | '1' | '2' | '3' | '4' | '5' | '6'| '7' | '8' | '9' {
67+
'0' to '9' {
6868
total = total * 10f;
6969
total += ((c as int) - ('0' as int)) as float;
7070
}

0 commit comments

Comments
 (0)