about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorWei-Ming Yang <rick68@users.noreply.github.com>2015-06-20 14:40:04 +0800
committerWei-Ming Yang <rick68@users.noreply.github.com>2015-06-20 14:40:04 +0800
commitcb260e5e9b43922d74cef1ed784f24a5f38d8633 (patch)
tree58b875507c8f6d858634ec7bc90c51caaec572c9 /src/libcore/num
parentc057802ca40677179e2fae0452eccb4fd3728a94 (diff)
downloadrust-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.rs3
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.
             ///