ruby-changes:70208
From: Matheus <ko1@a...>
Date: Wed, 15 Dec 2021 02:06:16 +0900 (JST)
Subject: [ruby-changes:70208] b32b755ea2 (master): Fix typo on Integer.try_convert [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=b32b755ea2 From b32b755ea2446d67fd53b89b68080ad9b66ac68d Mon Sep 17 00:00:00 2001 From: Matheus Richard <matheusrichardt@g...> 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(-) diff --git a/numeric.rb b/numeric.rb index d48a4ee336b..eea1ac96cd8 100644 --- a/numeric.rb +++ b/numeric.rb @@ -237,7 +237,7 @@ end https://github.com/ruby/ruby/blob/trunk/numeric.rb#L237 # Otherwise if +object+ responds to <tt>:to_int</tt>, # calls <tt>object.to_int</tt> and returns the result. # -# Returns +nil+ if +object+ does not respond to <tt>:to_ary</tt> +# Returns +nil+ if +object+ does not respond to <tt>:to_int</tt> # # Raises an exception unless <tt>object.to_int</tt> returns an \Integer object. # -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/