From 107a3267456e947f226eba3a8b1b3de39c568f69 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 9 Jul 2019 17:50:50 +0700 Subject: [PATCH 1/2] Missing backticks. --- src/cast.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cast.rs b/src/cast.rs index 20e9340..72ec7a8 100644 --- a/src/cast.rs +++ b/src/cast.rs @@ -682,7 +682,7 @@ impl NumCast for Wrapping { /// A generic interface for casting between machine scalars with the /// `as` operator, which admits narrowing and precision loss. -/// Implementers of this trait AsPrimitive should behave like a primitive +/// Implementers of this trait `AsPrimitive` should behave like a primitive /// numeric type (e.g. a newtype around another primitive), and the /// intended conversion must never fail. /// From d1f5658bfe8d67ba5d30275a3c02f0fddb6d7d26 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 9 Jul 2019 17:50:59 +0700 Subject: [PATCH 2/2] Typo fixes. --- src/pow.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pow.rs b/src/pow.rs index daecb8e..daf7b41 100644 --- a/src/pow.rs +++ b/src/pow.rs @@ -173,7 +173,7 @@ mod float_impls { /// Raises a value to the power of exp, using exponentiation by squaring. /// -/// Note that `0⁰` (`pow(0, 0)`) returnes `1`. Mathematically this is undefined. +/// Note that `0⁰` (`pow(0, 0)`) returns `1`. Mathematically this is undefined. /// /// # Example /// @@ -211,7 +211,7 @@ pub fn pow>(mut base: T, mut exp: usize) -> /// Raises a value to the power of exp, returning `None` if an overflow occurred. /// -/// Note that `0⁰` (`checked_pow(0, 0)`) returnes `Some(1)`. Mathematically this is undefined. +/// Note that `0⁰` (`checked_pow(0, 0)`) returns `Some(1)`. Mathematically this is undefined. /// /// Otherwise same as the `pow` function. ///