diff options
| author | Wei-Ming Yang <rick68@users.noreply.github.com> | 2015-06-20 14:40:04 +0800 |
|---|---|---|
| committer | Wei-Ming Yang <rick68@users.noreply.github.com> | 2015-06-20 14:40:04 +0800 |
| commit | cb260e5e9b43922d74cef1ed784f24a5f38d8633 (patch) | |
| tree | 58b875507c8f6d858634ec7bc90c51caaec572c9 /src/libcore/num | |
| parent | c057802ca40677179e2fae0452eccb4fd3728a94 (diff) | |
| download | rust-cb260e5e9b43922d74cef1ed784f24a5f38d8633.tar.gz rust-cb260e5e9b43922d74cef1ed784f24a5f38d8633.zip | |
Update mod.rs
`core::num::from_str_radix` can't parse the prefix `+` . http://is.gd/ewo0T2
Diffstat (limited to 'src/libcore/num')
| -rw-r--r-- | src/libcore/num/mod.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs index c1297d3c19c..97b4f776755 100644 --- a/src/libcore/num/mod.rs +++ b/src/libcore/num/mod.rs @@ -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. /// |
