aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object/try.rb
diff options
context:
space:
mode:
authorRobin Dupret <robin.dupret@gmail.com>2015-01-03 16:36:33 +0100
committerRobin Dupret <robin.dupret@gmail.com>2015-01-03 16:36:33 +0100
commit9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a (patch)
treec6a2176ae185b4e42c1160382a774616c75edd32 /activesupport/lib/active_support/core_ext/object/try.rb
parent4b9dba99d65b1bd27576b16a68d7d18522bae9ea (diff)
downloadrails-9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a.tar.gz
rails-9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a.tar.bz2
rails-9b9ec0ded4f8f65e17c2af856d2e3baa5382a47a.zip
Fix a few typos [ci skip]
Diffstat (limited to 'activesupport/lib/active_support/core_ext/object/try.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/object/try.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/object/try.rb b/activesupport/lib/active_support/core_ext/object/try.rb
index 6b3fc48a3f..e0f70b9caa 100644
--- a/activesupport/lib/active_support/core_ext/object/try.rb
+++ b/activesupport/lib/active_support/core_ext/object/try.rb
@@ -63,7 +63,7 @@ class Object
try!(*a, &b) if a.empty? || respond_to?(a.first)
end
- # Same as #try, but will raise a NoMethodError exception if the receiver is
+ # Same as #try, but raises a NoMethodError exception if the receiver is
# not +nil+ and does not implement the tried method.
#
# "a".try!(:upcase) # => "A"