Skip to content

Commit

Permalink
Update links to Roots trait methods
Browse files Browse the repository at this point in the history
Signed-off-by: Manca Bizjak <manca.bizjak@xlab.si>
  • Loading branch information
mancabizjak committed Jul 18, 2018
1 parent bbe7b18 commit 1d45ca9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/bigint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2559,19 +2559,19 @@ impl BigInt {
}

/// Returns the truncated principal square root of `self` --
/// see [Roots::sqrt](Roots::sqrt).
/// see [Roots::sqrt](https://docs.rs/num-integer/0.1/num_integer/trait.Roots.html#method.sqrt).
pub fn sqrt(&self) -> Self {
Roots::sqrt(self)
}

/// Returns the truncated principal cube root of `self` --
/// see [Roots::cbrt](Roots::cbrt).
/// see [Roots::cbrt](https://docs.rs/num-integer/0.1/num_integer/trait.Roots.html#method.cbrt).
pub fn cbrt(&self) -> Self {
Roots::cbrt(self)
}

/// Returns the truncated principal `n`th root of `self` --
/// See [Roots::nth_root](Roots::nth_root).
/// See [Roots::nth_root](https://docs.rs/num-integer/0.1/num_integer/trait.Roots.html#tymethod.nth_root).
pub fn nth_root(&self, n: u32) -> Self {
Roots::nth_root(self, n)
}
Expand Down
6 changes: 3 additions & 3 deletions src/biguint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1839,19 +1839,19 @@ impl BigUint {
}

/// Returns the truncated principal square root of `self` --
/// see [Roots::sqrt](Roots::sqrt)
/// see [Roots::sqrt](https://docs.rs/num-integer/0.1/num_integer/trait.Roots.html#method.sqrt)
pub fn sqrt(&self) -> Self {
Roots::sqrt(self)
}

/// Returns the truncated principal cube root of `self` --
/// see [Roots::cbrt](Roots::cbrt).
/// see [Roots::cbrt](https://docs.rs/num-integer/0.1/num_integer/trait.Roots.html#method.cbrt).
pub fn cbrt(&self) -> Self {
Roots::cbrt(self)
}

/// Returns the truncated principal `n`th root of `self` --
/// see [Roots::nth_root](Roots::nth_root).
/// see [Roots::nth_root](https://docs.rs/num-integer/0.1/num_integer/trait.Roots.html#tymethod.nth_root).
pub fn nth_root(&self, n: u32) -> Self {
Roots::nth_root(self, n)
}
Expand Down

0 comments on commit 1d45ca9

Please sign in to comment.