We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fa061c commit 16c81faCopy full SHA for 16c81fa
library/core/src/num/dec2flt/mod.rs
@@ -143,8 +143,10 @@ macro_rules! from_str_float_impl {
143
/// # Return value
144
///
145
/// `Err(ParseFloatError)` if the string did not represent a valid
146
- /// number. Otherwise, `Ok(n)` where `n` is the floating-point
147
- /// number represented by `src`.
+ /// number. Otherwise, `Ok(n)` where `n` is the closest
+ /// representable floating-point number to the number represented
148
+ /// by `src` (following the same rules for rounding as for the
149
+ /// results of primitive operations).
150
#[inline]
151
fn from_str(src: &str) -> Result<Self, ParseFloatError> {
152
dec2flt(src)
0 commit comments