about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-04-11 19:04:51 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-04-11 19:04:51 +0530
commit46f3bdf5ab1f590af4d5641833f90fb1e8efff3e (patch)
treeed66caf60c035d26eb79f19cf5f6ab8baaf5ee00 /src/libcore/num
parentb6cb73b5344edca5ad8c08d5921886d80f67f19d (diff)
parente66569eae830231a886c6e9eee0ee291491ea675 (diff)
downloadrust-46f3bdf5ab1f590af4d5641833f90fb1e8efff3e.tar.gz
rust-46f3bdf5ab1f590af4d5641833f90fb1e8efff3e.zip
Rollup merge of #24274 - steveklabnik:fix_pow_docs, r=nikomatsakis
 This is very confusing now that these are inherent methods.
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/mod.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index 9007a5142c3..6f7a0884682 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -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]