Skip to content

Commit b20d21e

Browse files
committed
Rollup merge of rust-lang#24274 - steveklabnik:fix_pow_docs, r=nikomatsakis
This is very confusing now that these are inherent methods.
2 parents 88efb5c + e66569e commit b20d21e

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)