Update mod.rs
`core::num::from_str_radix` can't parse the prefix `+` . http://is.gd/ewo0T2
This commit is contained in:
parent
c057802ca4
commit
cb260e5e9b
1 changed files with 1 additions and 2 deletions
|
|
@ -1372,14 +1372,13 @@ macro_rules! from_str_float_impl {
|
|||
/// This function accepts strings such as
|
||||
///
|
||||
/// * '3.14'
|
||||
/// * '+3.14', equivalent to '3.14'
|
||||
/// * '-3.14'
|
||||
/// * '2.5E10', or equivalently, '2.5e10'
|
||||
/// * '2.5E-10'
|
||||
/// * '.' (understood as 0)
|
||||
/// * '5.'
|
||||
/// * '.5', or, equivalently, '0.5'
|
||||
/// * '+inf', 'inf', '-inf', 'NaN'
|
||||
/// * 'inf', '-inf', 'NaN'
|
||||
///
|
||||
/// Leading and trailing whitespace represent an error.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue