Fix pow docs to not use Int
This is very confusing now that these are inherent methods.
This commit is contained in:
parent
e4f9ddb878
commit
e66569eae8
1 changed files with 3 additions and 4 deletions
|
|
@ -1224,11 +1224,10 @@ macro_rules! int_impl {
|
|||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// ```rust
|
||||
/// # #![feature(core)]
|
||||
/// use std::num::Int;
|
||||
/// ```
|
||||
/// let x: i32 = 2; // or any other integer type
|
||||
///
|
||||
/// assert_eq!(2.pow(4), 16);
|
||||
/// assert_eq!(x.pow(4), 16);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue