119: Doc fixes r=cuviper a=waywardmonkeys



Co-authored-by: Bruce Mitchener <bruce.mitchener@gmail.com>
This commit is contained in:
bors[bot] 2019-07-09 17:13:44 +00:00
commit 58f02a8677
2 changed files with 3 additions and 3 deletions

View File

@ -682,7 +682,7 @@ impl<T: NumCast> NumCast for Wrapping<T> {
/// A generic interface for casting between machine scalars with the /// A generic interface for casting between machine scalars with the
/// `as` operator, which admits narrowing and precision loss. /// `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 /// numeric type (e.g. a newtype around another primitive), and the
/// intended conversion must never fail. /// intended conversion must never fail.
/// ///

View File

@ -173,7 +173,7 @@ mod float_impls {
/// Raises a value to the power of exp, using exponentiation by squaring. /// 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 /// # Example
/// ///
@ -211,7 +211,7 @@ pub fn pow<T: Clone + One + Mul<T, Output = T>>(mut base: T, mut exp: usize) ->
/// Raises a value to the power of exp, returning `None` if an overflow occurred. /// 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. /// Otherwise same as the `pow` function.
/// ///