From cb260e5e9b43922d74cef1ed784f24a5f38d8633 Mon Sep 17 00:00:00 2001 From: Wei-Ming Yang Date: Sat, 20 Jun 2015 14:40:04 +0800 Subject: Update mod.rs `core::num::from_str_radix` can't parse the prefix `+` . http://is.gd/ewo0T2 --- src/libcore/num/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/libcore/num') 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. /// -- cgit 1.4.1-3-g733a5