mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2229 from yui-knk/add-comment-each_pair
Add comment to Hash#each_pair. And change the line
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
class Hash
|
||||
|
||||
# ISO does not define Hash#each_pair, so each_pair is defined in gem.
|
||||
alias each_pair each
|
||||
|
||||
##
|
||||
# call-seq:
|
||||
# hsh.merge!(other_hash) -> hsh
|
||||
@@ -33,7 +36,6 @@ class Hash
|
||||
self
|
||||
end
|
||||
|
||||
alias each_pair each
|
||||
alias update merge!
|
||||
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user