about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-04-10 10:58:07 -0400
committerSteve Klabnik <steve@steveklabnik.com>2015-04-10 10:58:07 -0400
commite66569eae830231a886c6e9eee0ee291491ea675 (patch)
tree75f77cb18d777152ba9fa20e39131486d846f5f6 /src/libcore/num
parente4f9ddb878992a9a4edd2667423c29b129ce4301 (diff)
downloadrust-e66569eae830231a886c6e9eee0ee291491ea675.tar.gz
rust-e66569eae830231a886c6e9eee0ee291491ea675.zip
Fix pow docs to not use Int
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 7868e299cfc..277abc4d602 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]