about summary refs log tree commit diff
path: root/src/libcore/num
diff options
context:
space:
mode:
authorStjepan Glavina <stjepang@gmail.com>2017-03-22 01:42:23 +0100
committerStjepan Glavina <stjepang@gmail.com>2017-03-22 17:19:52 +0100
commitd6da1d9b46f7090b18be357bef8d55ffa3673d2f (patch)
treeb1af890ad3f0728432eec3c8049e20789b7eb75d /src/libcore/num
parentcab4bff3de1a61472f3c2e7752ef54b87344d1c9 (diff)
downloadrust-d6da1d9b46f7090b18be357bef8d55ffa3673d2f.tar.gz
rust-d6da1d9b46f7090b18be357bef8d55ffa3673d2f.zip
Various fixes to wording consistency in the docs
Diffstat (limited to 'src/libcore/num')
-rw-r--r--src/libcore/num/bignum.rs6
-rw-r--r--src/libcore/num/mod.rs8
2 files changed, 7 insertions, 7 deletions
diff --git a/src/libcore/num/bignum.rs b/src/libcore/num/bignum.rs
index a1f4630c304..8904322ca48 100644
--- a/src/libcore/num/bignum.rs
+++ b/src/libcore/num/bignum.rs
@@ -148,14 +148,14 @@ macro_rules! define_bignum {
                 $name { size: sz, base: base }
             }
 
-            /// Return the internal digits as a slice `[a, b, c, ...]` such that the numeric
+            /// Returns the internal digits as a slice `[a, b, c, ...]` such that the numeric
             /// value is `a + b * 2^W + c * 2^(2W) + ...` where `W` is the number of bits in
             /// the digit type.
             pub fn digits(&self) -> &[$ty] {
                 &self.base[..self.size]
             }
 
-            /// Return the `i`-th bit where bit 0 is the least significant one.
+            /// Returns the `i`-th bit where bit 0 is the least significant one.
             /// In other words, the bit with weight `2^i`.
             pub fn get_bit(&self, i: usize) -> u8 {
                 use mem;
@@ -166,7 +166,7 @@ macro_rules! define_bignum {
                 ((self.base[d] >> b) & 1) as u8
             }
 
-            /// Returns true if the bignum is zero.
+            /// Returns `true` if the bignum is zero.
             pub fn is_zero(&self) -> bool {
                 self.digits().iter().all(|&v| v == 0)
             }
diff --git a/src/libcore/num/mod.rs b/src/libcore/num/mod.rs
index ccfe6364e6a..df343c9d45f 100644
--- a/src/libcore/num/mod.rs
+++ b/src/libcore/num/mod.rs
@@ -2568,17 +2568,17 @@ pub trait Float: Sized {
                                  implementable outside the standard library")]
     fn one() -> Self;
 
-    /// Returns true if this value is NaN and false otherwise.
+    /// Returns `true` if this value is NaN and false otherwise.
     #[stable(feature = "core", since = "1.6.0")]
     fn is_nan(self) -> bool;
-    /// Returns true if this value is positive infinity or negative infinity and
+    /// Returns `true` if this value is positive infinity or negative infinity and
     /// false otherwise.
     #[stable(feature = "core", since = "1.6.0")]
     fn is_infinite(self) -> bool;
-    /// Returns true if this number is neither infinite nor NaN.
+    /// Returns `true` if this number is neither infinite nor NaN.
     #[stable(feature = "core", since = "1.6.0")]
     fn is_finite(self) -> bool;
-    /// Returns true if this number is neither zero, infinite, denormal, or NaN.
+    /// Returns `true` if this number is neither zero, infinite, denormal, or NaN.
     #[stable(feature = "core", since = "1.6.0")]
     fn is_normal(self) -> bool;
     /// Returns the category that this number falls into.