We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 88efb5c + e66569e commit b20d21eCopy full SHA for b20d21e
src/libcore/num/mod.rs
@@ -1224,11 +1224,10 @@ macro_rules! int_impl {
1224
///
1225
/// # Examples
1226
1227
- /// ```rust
1228
- /// # #![feature(core)]
1229
- /// use std::num::Int;
+ /// ```
+ /// let x: i32 = 2; // or any other integer type
1230
1231
- /// assert_eq!(2.pow(4), 16);
+ /// assert_eq!(x.pow(4), 16);
1232
/// ```
1233
#[stable(feature = "rust1", since = "1.0.0")]
1234
#[inline]
0 commit comments