diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-10-27 00:13:15 +0300 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2016-10-27 00:27:47 +0300 |
commit | 5faa9a235c46037a3b8e4f3308fd7ccadaae8039 (patch) | |
tree | ea89b18ff5cca42117dafa96c8772cc6e00d2227 /activesupport/lib/active_support/rescuable.rb | |
parent | 0b4679f192a4892a6eb09bb6103d967408cfdc83 (diff) | |
download | rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.tar.gz rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.tar.bz2 rails-5faa9a235c46037a3b8e4f3308fd7ccadaae8039.zip |
Add missing `+` around a some literals.
Mainly around `nil`
[ci skip]
Diffstat (limited to 'activesupport/lib/active_support/rescuable.rb')
-rw-r--r-- | activesupport/lib/active_support/rescuable.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/rescuable.rb b/activesupport/lib/active_support/rescuable.rb index dc3f27a16d..135690cc42 100644 --- a/activesupport/lib/active_support/rescuable.rb +++ b/activesupport/lib/active_support/rescuable.rb @@ -74,7 +74,7 @@ module ActiveSupport # # If no handler matches the exception, check for a handler matching the # (optional) exception.cause. If no handler matches the exception or its - # cause, this returns nil so you can deal with unhandled exceptions. + # cause, this returns +nil+, so you can deal with unhandled exceptions. # Be sure to re-raise unhandled exceptions if this is what you expect. # # begin @@ -83,7 +83,7 @@ module ActiveSupport # rescue_with_handler(exception) || raise # end # - # Returns the exception if it was handled and nil if it was not. + # Returns the exception if it was handled and +nil+ if it was not. def rescue_with_handler(exception, object: self) if handler = handler_for_rescue(exception, object: object) handler.call exception |