* hash.c (rb_hash_update): remove a meticulous explanation

As per Marc-Andre's comment.  [Refs GH-1951]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2018-09-19 02:07:33 +00:00
parent d6a06a768c
commit bfbf9bd6d3

3
hash.c
View File

@ -2559,8 +2559,7 @@ rb_hash_update_block_i(VALUE key, VALUE value, VALUE hash)
* specified, entries with duplicate keys are overwritten with the values from
* each _other_hash_, otherwise the value of each duplicate key is determined by
* calling the block with the key, its value in _hsh_ and its value in
* each _other_hash_. The method also can be called with no argument,
* then nothing will change in the receiver.
* each _other_hash_.
*
* h1 = { "a" => 100, "b" => 200 }
* h1.merge!() #=> {"a"=>100, "b"=>200}