summaryrefslogtreecommitdiff
path: root/complex.c
diff options
context:
space:
mode:
Diffstat (limited to 'complex.c')
-rw-r--r--complex.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/complex.c b/complex.c
index c6daefdb99..7400dea5d2 100644
--- a/complex.c
+++ b/complex.c
@@ -1273,10 +1273,8 @@ rb_complex_finite_p(VALUE self)
* call-seq:
* cmp.infinite? -> nil or 1
*
- * Returns values corresponding to the value of +cmp+'s magnitude:
- *
- * +finite+:: +nil+
- * ++Infinity+:: ++1+
+ * Returns +1+ if +cmp+'s real or imaginary value is an infinite number,
+ * otherwise returns +nil+.
*
* For example:
*