aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/compact.rb
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2016-10-27 00:13:15 +0300
committerbogdanvlviv <bogdanvlviv@gmail.com>2016-10-27 00:27:47 +0300
commit5faa9a235c46037a3b8e4f3308fd7ccadaae8039 (patch)
treeea89b18ff5cca42117dafa96c8772cc6e00d2227 /activesupport/lib/active_support/core_ext/hash/compact.rb
parent0b4679f192a4892a6eb09bb6103d967408cfdc83 (diff)
downloadrails-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/core_ext/hash/compact.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/compact.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/compact.rb b/activesupport/lib/active_support/core_ext/hash/compact.rb
index 5cae495bda..e357284be0 100644
--- a/activesupport/lib/active_support/core_ext/hash/compact.rb
+++ b/activesupport/lib/active_support/core_ext/hash/compact.rb
@@ -14,7 +14,7 @@ class Hash
unless Hash.instance_methods(false).include?(:compact!)
# Replaces current hash with non +nil+ values.
- # Returns nil if no changes were made, otherwise returns the hash.
+ # Returns +nil+ if no changes were made, otherwise returns the hash.
#
# hash = { a: true, b: false, c: nil }
# hash.compact! # => { a: true, b: false }