Skip to content

Commit 9715131

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Fix example in Numeric#to_int
1 parent 6bf7a17 commit 9715131

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numeric.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ num_nonzero_p(VALUE num)
857857
* Rational(1, 2).to_int # => 0
858858
* Rational(2, 1).to_int # => 2
859859
* Complex(2, 0).to_int # => 2
860-
* Complex(2, 1) # Raises RangeError (non-zero imaginary part)
860+
* Complex(2, 1).to_int # Raises RangeError (non-zero imaginary part)
861861
*
862862
*/
863863

0 commit comments

Comments
 (0)