[Renaming] str_to_float is now float::from_str, float_to_str is now float::to_str
This commit is contained in:
parent
7faed3d87c
commit
8c9dd54ded
4 changed files with 8 additions and 8 deletions
|
|
@ -1303,8 +1303,8 @@ fn valid_range_bounds(l1: @ast::lit, l2: @ast::lit) -> bool {
|
|||
alt l1.node {
|
||||
ast::lit_float(s1) | ast::lit_mach_float(_, s1) {
|
||||
let s2 = lit_as_float(l2);
|
||||
let f1 = std::float::str_to_float(s1);
|
||||
let f2 = std::float::str_to_float(s2);
|
||||
let f1 = std::float::from_str(s1);
|
||||
let f2 = std::float::from_str(s2);
|
||||
ret *util::common::min(f1, f2) == f1
|
||||
}
|
||||
ast::lit_uint(_) | ast::lit_char(_) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue