Skip to content

Commit ffe0b66

Browse files
committed
Auto merge of #26450 - rick68:patch-7, r=alexcrichton
`core::num::from_str_radix` can't parse the prefix `+` . http://is.gd/ewo0T2
2 parents ecfcd2a + cb260e5 commit ffe0b66

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/libcore/num/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1372,14 +1372,13 @@ macro_rules! from_str_float_impl {
13721372
/// This function accepts strings such as
13731373
///
13741374
/// * '3.14'
1375-
/// * '+3.14', equivalent to '3.14'
13761375
/// * '-3.14'
13771376
/// * '2.5E10', or equivalently, '2.5e10'
13781377
/// * '2.5E-10'
13791378
/// * '.' (understood as 0)
13801379
/// * '5.'
13811380
/// * '.5', or, equivalently, '0.5'
1382-
/// * '+inf', 'inf', '-inf', 'NaN'
1381+
/// * 'inf', '-inf', 'NaN'
13831382
///
13841383
/// Leading and trailing whitespace represent an error.
13851384
///

0 commit comments

Comments
 (0)