diff options
| author | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-15 16:26:09 +1100 |
|---|---|---|
| committer | Huon Wilson <dbau.pp+github@gmail.com> | 2013-12-15 16:26:09 +1100 |
| commit | 55534100ce175143e2c7223100b825bf130e750b (patch) | |
| tree | c14401522be20bd5f2b9b3dbfe741d5dc09ad9f9 /src/libstd/num | |
| parent | 8f6df87c1d876895a7e313728b43d9710ae682bb (diff) | |
| download | rust-55534100ce175143e2c7223100b825bf130e750b.tar.gz rust-55534100ce175143e2c7223100b825bf130e750b.zip | |
std: fix spelling in docs.
Diffstat (limited to 'src/libstd/num')
| -rw-r--r-- | src/libstd/num/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/num/mod.rs b/src/libstd/num/mod.rs index 79efe5934d5..c8c2ea8af81 100644 --- a/src/libstd/num/mod.rs +++ b/src/libstd/num/mod.rs @@ -209,7 +209,7 @@ pub trait Fractional: Num pub trait Algebraic { /// Raise a number to a power. fn pow(&self, n: &Self) -> Self; - /// Take the squre root of a number. + /// Take the square root of a number. fn sqrt(&self) -> Self; /// Take the reciprocal (inverse) square root of a number, `1/sqrt(x)`. fn rsqrt(&self) -> Self; @@ -229,7 +229,7 @@ pub trait Algebraic { /// assert_eq!(sixteen, 16.0); /// ``` #[inline(always)] pub fn pow<T: Algebraic>(value: T, n: T) -> T { value.pow(&n) } -/// Take the squre root of a number. +/// Take the square root of a number. #[inline(always)] pub fn sqrt<T: Algebraic>(value: T) -> T { value.sqrt() } /// Take the reciprocal (inverse) square root of a number, `1/sqrt(x)`. #[inline(always)] pub fn rsqrt<T: Algebraic>(value: T) -> T { value.rsqrt() } |
