Skip to content

Commit e66569e

Browse files
committed
Fix pow docs to not use Int
This is very confusing now that these are inherent methods.
1 parent e4f9ddb commit e66569e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/libcore/num/mod.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,11 +1224,10 @@ macro_rules! int_impl {
12241224
///
12251225
/// # Examples
12261226
///
1227-
/// ```rust
1228-
/// # #![feature(core)]
1229-
/// use std::num::Int;
1227+
/// ```
1228+
/// let x: i32 = 2; // or any other integer type
12301229
///
1231-
/// assert_eq!(2.pow(4), 16);
1230+
/// assert_eq!(x.pow(4), 16);
12321231
/// ```
12331232
#[stable(feature = "rust1", since = "1.0.0")]
12341233
#[inline]

0 commit comments

Comments
 (0)