Hi! I found a mismatch between documentation and behavior of stable Rust.
When I tried to parse a string equal "." f32/f64::from_str returned Err(...) instead of Ok(0.0), as it states in official documentation here.
Tests (based on mentioned doc)
f32: https://play.rust-lang.org/?gist=c7495df140e0991473fb914b0b468b34&version=stable
f64: https://play.rust-lang.org/?gist=c319d2f10762767b9983907cb9d7f2dc&version=stable
Hi! I found a mismatch between documentation and behavior of stable Rust.
When I tried to parse a string equal
"."f32/f64::from_strreturnedErr(...)instead ofOk(0.0), as it states in official documentation here.Tests (based on mentioned doc)
f32: https://play.rust-lang.org/?gist=c7495df140e0991473fb914b0b468b34&version=stablef64: https://play.rust-lang.org/?gist=c319d2f10762767b9983907cb9d7f2dc&version=stable