]> git.lizzy.rs Git - rust.git/commit
Make float parsing "." return Err
authorToby Scrace <toby.scrace@gmail.com>
Sun, 3 Jan 2016 20:08:53 +0000 (20:08 +0000)
committerToby Scrace <toby.scrace@gmail.com>
Mon, 4 Jan 2016 18:23:33 +0000 (18:23 +0000)
commit33f3c52d32e6f91494bc305fd25f9d5ae5a11702
tree7fd8c5619b3d9b8d45374751d53681929a66c21f
parent543bb03d3ec864cfe47a9afd761101ea95f628f6
Make float parsing "." return Err

This makes both of the following return Err:

    ".".parse::<f32>()
    ".".parse::<f64>()

This is a [breaking-change], which the libs team have classified as a
bug fix.
src/libcore/num/dec2flt/parse.rs
src/libcoretest/num/dec2flt/mod.rs