diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-01-16 11:58:07 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-16 11:58:07 +0530 |
| commit | 90b9a627bf191ac0726ce96e02d44a42ff445bf2 (patch) | |
| tree | 63b90b70dd13343e901b28e5f857ac404d8b32fa /src/libstd | |
| parent | 4d5e5a6ec0010cbcf4b18dd4ce8d28350d9fe894 (diff) | |
| parent | d0db6d5791a75bb6e6f7ebe98067e78753fc1986 (diff) | |
| download | rust-90b9a627bf191ac0726ce96e02d44a42ff445bf2.tar.gz rust-90b9a627bf191ac0726ce96e02d44a42ff445bf2.zip | |
Rollup merge of #68266 - Stromberg90:patch-2, r=Dylan-DPC
Changed docs for f32 and f64.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/f32.rs | 4 | ||||
| -rw-r--r-- | src/libstd/f64.rs | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs index 209eea4a5ff..c57bce95073 100644 --- a/src/libstd/f32.rs +++ b/src/libstd/f32.rs @@ -355,7 +355,7 @@ impl f32 { return unsafe { intrinsics::powf32(self, n) }; } - /// Takes the square root of a number. + /// Returns the square root of a number. /// /// Returns NaN if `self` is a negative number. /// @@ -564,7 +564,7 @@ impl f32 { unsafe { cmath::fdimf(self, other) } } - /// Takes the cubic root of a number. + /// Returns the cubic root of a number. /// /// # Examples /// diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs index 15fbb911d04..d89b38e1a00 100644 --- a/src/libstd/f64.rs +++ b/src/libstd/f64.rs @@ -323,7 +323,7 @@ impl f64 { unsafe { intrinsics::powf64(self, n) } } - /// Takes the square root of a number. + /// Returns the square root of a number. /// /// Returns NaN if `self` is a negative number. /// @@ -506,7 +506,7 @@ impl f64 { unsafe { cmath::fdim(self, other) } } - /// Takes the cubic root of a number. + /// Returns the cubic root of a number. /// /// # Examples /// |
