Closed
Description
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
Metadata
Metadata
Assignees
Labels
Area: Documentation for any part of the project, including the compiler, standard library, and toolsCategory: This is a bug.Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.