[ruby-cvs:71869] mame:r64777 (trunk): * hash.c (rb_hash_merge): Accepts zero or more hashes as arguments

mame at ruby-lang.org mame at ruby-lang.org
Wed Sep 19 10:59:26 JST 2018


mame	2018-09-19 10:59:26 +0900 (Wed, 19 Sep 2018)

  New Revision: 64777

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64777

  Log:
    * hash.c (rb_hash_merge): Accepts zero or more hashes as arguments
    
    Hash#merge, merge!, and update could merge exactly two hashes.
    Now, they accepts zero or more hashes as arguments so that it can merge
    hashes more than two.
    
    This patch was created by Koki Ryu <liukoki at gmail.com> at Ruby Hack
    Challenge #5.  Thank you!
    [ruby-core:88970] [Feature #15111] [Fix GH-1951]

  Modified files:
    trunk/hash.c
    trunk/test/ruby/test_hash.rb


More information about the ruby-cvs mailing list