about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTrevor Spiteri <tspiteri@ieee.org>2021-02-26 19:03:44 +0100
committerTrevor Spiteri <tspiteri@ieee.org>2021-02-26 19:03:44 +0100
commitdd502cb3436756ecb32a3024e7cd9d855348227c (patch)
tree0a0faf94f0ac6d7db286ce4808f078c9dcf890b4
parentcecdb181ade91c0a5ffab9a148dba68fc7d00ee3 (diff)
downloadrust-dd502cb3436756ecb32a3024e7cd9d855348227c.tar.gz
rust-dd502cb3436756ecb32a3024e7cd9d855348227c.zip
doc: cube root, not cubic root
Like we say square root, not quadratic root.
-rw-r--r--library/std/src/f32.rs2
-rw-r--r--library/std/src/f64.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/f32.rs b/library/std/src/f32.rs
index f51b2c24621..c16d27fa1f5 100644
--- a/library/std/src/f32.rs
+++ b/library/std/src/f32.rs
@@ -503,7 +503,7 @@ impl f32 {
         unsafe { cmath::fdimf(self, other) }
     }
 
-    /// Returns the cubic root of a number.
+    /// Returns the cube root of a number.
     ///
     /// # Examples
     ///
diff --git a/library/std/src/f64.rs b/library/std/src/f64.rs
index 8c41e448686..4c95df5ffe0 100644
--- a/library/std/src/f64.rs
+++ b/library/std/src/f64.rs
@@ -505,7 +505,7 @@ impl f64 {
         unsafe { cmath::fdim(self, other) }
     }
 
-    /// Returns the cubic root of a number.
+    /// Returns the cube root of a number.
     ///
     /// # Examples
     ///