From b32b755ea2446d67fd53b89b68080ad9b66ac68d Mon Sep 17 00:00:00 2001 From: Matheus Richard Date: Tue, 14 Dec 2021 13:46:08 -0300 Subject: Fix typo on Integer.try_convert [ci skip] --- numeric.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numeric.rb') diff --git a/numeric.rb b/numeric.rb index d48a4ee336..eea1ac96cd 100644 --- a/numeric.rb +++ b/numeric.rb @@ -237,7 +237,7 @@ end # Otherwise if +object+ responds to :to_int, # calls object.to_int and returns the result. # -# Returns +nil+ if +object+ does not respond to :to_ary +# Returns +nil+ if +object+ does not respond to :to_int # # Raises an exception unless object.to_int returns an \Integer object. # -- cgit v1.2.1