rust/src/libstd/num
bors 5936278ed6 Auto merge of #22076 - carols10cents:exp2-calling-exp, r=huonw
I was working on adding examples to the documentation in `std::num::Float`. I got to `exp2`, which says "Returns 2 raised to the power of the number, `2^(self)`."

So I tried running this code:

```
use std::num::Float;

#[test]
fn test_exp2() {
    assert_eq!(32.0, 5.0.exp2());
}
```

and it resulted in a failure of `(left: `32`, right: `148.413159`)`. That 148.413159 is the value for e^5, which is `exp()`, not `exp2()`.

Sure enough, `exp2` is calling `exp` and shouldn't be, looks like a copy-paste error. 

I haven't added any tests for this since it's unlikely to break again, but I will happily do so if people think that would be a good idea. The doc examples are coming :)

I scanned through the other functions in these files for similar sorts of errors and didn't notice any.
2015-02-11 03:15:00 +00:00
..
f32.rs Correct fns exp2 that were calling exp 2015-02-08 10:57:23 -05:00
f64.rs Correct fns exp2 that were calling exp 2015-02-08 10:57:23 -05:00
float_macros.rs Set unstable feature names appropriately 2015-01-23 13:28:40 -08:00
i8.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
i16.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
i32.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
i64.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
int.rs Deprecated attributes don't take 'feature' names and are paired with stable/unstable 2015-01-23 15:50:03 -08:00
int_macros.rs Set unstable feature names appropriately 2015-01-23 13:28:40 -08:00
isize.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
mod.rs std: Add reexports for core parse errors 2015-02-04 08:48:46 -08:00
strconv.rs remove all kind annotations from closures 2015-02-04 20:06:08 -05:00
u8.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
u16.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
u32.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
u64.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00
uint.rs Deprecated attributes don't take 'feature' names and are paired with stable/unstable 2015-01-23 15:50:03 -08:00
uint_macros.rs std: Stabilize FromStr and parse 2015-01-30 08:52:44 -08:00
usize.rs grandfathered -> rust1 2015-01-23 21:48:20 -08:00