Skip to content

Commit

Permalink
[DOC] Fix example in Numeric#to_int
Browse files Browse the repository at this point in the history
  • Loading branch information
BurdetteLamar authored and peterzhu2118 committed Dec 17, 2024
1 parent 6bf7a17 commit 9715131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numeric.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
*
*/

Expand Down

0 comments on commit 9715131

Please sign in to comment.