From 9715131c32fa9753da6a616c9ad3891e27bcff5b Mon Sep 17 00:00:00 2001 From: BurdetteLamar Date: Tue, 17 Dec 2024 10:34:19 -0600 Subject: [PATCH] [DOC] Fix example in Numeric#to_int --- numeric.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) * */