This commit is contained in:
Roald 2018-08-07 12:56:16 +02:00
parent 0f228be4d5
commit 2b975badfa
1 changed files with 2 additions and 2 deletions

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`. Mathematicly this is undefined. /// Note that `0⁰` (`pow(0, 0)`) returnes `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)`. Mathematicly this is undefined. /// Note that `0⁰` (`checked_pow(0, 0)`) returnes `Some(1)`. Mathematically this is undefined.
/// ///
/// Otherwise same as the `pow` function. /// Otherwise same as the `pow` function.
/// ///