diff options
author | BurdetteLamar <[email protected]> | 2024-12-17 10:34:19 -0600 |
---|---|---|
committer | Peter Zhu <[email protected]> | 2024-12-17 13:01:39 -0500 |
commit | 9715131c32fa9753da6a616c9ad3891e27bcff5b (patch) | |
tree | 2817a0dd600eb79df094637c013e350fe73a92e1 /numeric.c | |
parent | 6bf7a1765f89561155eb12148ea1985e82ba8600 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) * */ |