summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
Diffstat (limited to 'numeric.c')
-rw-r--r--numeric.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/numeric.c b/numeric.c
index a36370b9a4..30d4ce1426 100644
--- a/numeric.c
+++ b/numeric.c
@@ -857,7 +857,7 @@ num_nonzero_p(VALUE num)
* Rational(1, 2).to_int # => 0
* Rational(2, 1).to_int # => 2
* Complex(2, 0).to_int # => 2
- * Complex(2, 1) # Raises RangeError (non-zero imaginary part)
+ * Complex(2, 1).to_int # Raises RangeError (non-zero imaginary part)
*
*/