summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--numeric.rb2
1 files changed, 1 insertions, 1 deletions
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 <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.
#