summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
authorBurdetteLamar <[email protected]>2024-12-17 10:34:19 -0600
committerPeter Zhu <[email protected]>2024-12-17 13:01:39 -0500
commit9715131c32fa9753da6a616c9ad3891e27bcff5b (patch)
tree2817a0dd600eb79df094637c013e350fe73a92e1 /numeric.c
parent6bf7a1765f89561155eb12148ea1985e82ba8600 (diff)
[DOC] Fix example in Numeric#to_int
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/12372
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)
*
*/