Skip to content

Commit 099292b

Browse files
committed
Match CRuby exception message for Rational
1 parent 3b6f0ef commit 099292b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/ruby/truffleruby/core/rational.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ def marshal_load(ary)
431431
private :marshal_load
432432

433433
def with_precision(method, n, **kwargs)
434-
raise TypeError, 'not an Integer' unless Primitive.object_kind_of?(n, Integer)
434+
raise TypeError, 'not an integer' unless Primitive.object_kind_of?(n, Integer)
435435

436436
p = 10 ** n
437437
s = self * p

0 commit comments

Comments
 (0)