aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--math.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/math.c b/math.c
index a41fdb5b54..64b38741db 100644
--- a/math.c
+++ b/math.c
@@ -658,9 +658,9 @@ math_sqrt(VALUE obj, VALUE x)
*
* Returns the cube root of +x+.
*
- * Domain: [0, INFINITY)
+ * Domain: (-INFINITY, INFINITY)
*
- * Codomain:[0, INFINITY)
+ * Codomain: (-INFINITY, INFINITY)
*
* -9.upto(9) {|x|
* p [x, Math.cbrt(x), Math.cbrt(x)**3]