summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-01-16 11:58:07 +0530
committerGitHub <noreply@github.com>2020-01-16 11:58:07 +0530
commit90b9a627bf191ac0726ce96e02d44a42ff445bf2 (patch)
tree63b90b70dd13343e901b28e5f857ac404d8b32fa
parentRollup merge of #68265 - JohnTitor:fix-issue-number, r=Dylan-DPC (diff)
parentUpdate f32.rs (diff)
downloadrust-90b9a627bf191ac0726ce96e02d44a42ff445bf2.tar.gz
rust-90b9a627bf191ac0726ce96e02d44a42ff445bf2.tar.bz2
rust-90b9a627bf191ac0726ce96e02d44a42ff445bf2.tar.xz
Rollup merge of #68266 - Stromberg90:patch-2, r=Dylan-DPC
Changed docs for f32 and f64.
-rw-r--r--src/libstd/f32.rs4
-rw-r--r--src/libstd/f64.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs
index 209eea4..c57bce9 100644
--- a/src/libstd/f32.rs
+++ b/src/libstd/f32.rs
@@ -355,7 +355,7 @@ impl f32 {
355 return unsafe { intrinsics::powf32(self, n) }; 355 return unsafe { intrinsics::powf32(self, n) };
356 } 356 }
357 357
358 /// Takes the square root of a number. 358 /// Returns the square root of a number.
359 /// 359 ///
360 /// Returns NaN if `self` is a negative number. 360 /// Returns NaN if `self` is a negative number.
361 /// 361 ///
@@ -564,7 +564,7 @@ impl f32 {
564 unsafe { cmath::fdimf(self, other) } 564 unsafe { cmath::fdimf(self, other) }
565 } 565 }
566 566
567 /// Takes the cubic root of a number. 567 /// Returns the cubic root of a number.
568 /// 568 ///
569 /// # Examples 569 /// # Examples
570 /// 570 ///
diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs
index 15fbb91..d89b38e 100644
--- a/src/libstd/f64.rs
+++ b/src/libstd/f64.rs
@@ -323,7 +323,7 @@ impl f64 {
323 unsafe { intrinsics::powf64(self, n) } 323 unsafe { intrinsics::powf64(self, n) }
324 } 324 }
325 325
326 /// Takes the square root of a number. 326 /// Returns the square root of a number.
327 /// 327 ///
328 /// Returns NaN if `self` is a negative number. 328 /// Returns NaN if `self` is a negative number.
329 /// 329 ///
@@ -506,7 +506,7 @@ impl f64 {
506 unsafe { cmath::fdim(self, other) } 506 unsafe { cmath::fdim(self, other) }
507 } 507 }
508 508
509 /// Takes the cubic root of a number. 509 /// Returns the cubic root of a number.
510 /// 510 ///
511 /// # Examples 511 /// # Examples
512 /// 512 ///