Skip to content

Commit 79b88e0

Browse files
author
Akshay Vishnoi
committed
[ci skip] Correct output of Hash#symbolize_keys
1 parent b186718 commit 79b88e0

File tree

1 file changed

+2
-2
lines changed
  • activesupport/lib/active_support/core_ext/hash

1 file changed

+2
-2
lines changed

activesupport/lib/active_support/core_ext/hash/keys.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def transform_keys!
2727
# hash = { name: 'Rob', age: '28' }
2828
#
2929
# hash.stringify_keys
30-
# # => { "name" => "Rob", "age" => "28" }
30+
# # => {"name"=>"Rob", "age"=>"28"}
3131
def stringify_keys
3232
transform_keys{ |key| key.to_s }
3333
end
@@ -44,7 +44,7 @@ def stringify_keys!
4444
# hash = { 'name' => 'Rob', 'age' => '28' }
4545
#
4646
# hash.symbolize_keys
47-
# # => { name: "Rob", age: "28" }
47+
# # => {:name=>"Rob", :age=>"28"}
4848
def symbolize_keys
4949
transform_keys{ |key| key.to_sym rescue key }
5050
end

0 commit comments

Comments
 (0)