diff --git a/hash.c b/hash.c index 6e9cda954d..c0f2252948 100644 --- a/hash.c +++ b/hash.c @@ -2530,11 +2530,13 @@ rb_hash_update_block_i(VALUE key, VALUE value, VALUE hash) * h1 = { "a" => 100, "b" => 200 } * h2 = { "b" => 254, "c" => 300 } * h1.merge!(h2) #=> {"a"=>100, "b"=>254, "c"=>300} + * h1 #=> {"a"=>100, "b"=>254, "c"=>300} * * h1 = { "a" => 100, "b" => 200 } * h2 = { "b" => 254, "c" => 300 } * h1.merge!(h2) { |key, v1, v2| v1 } * #=> {"a"=>100, "b"=>200, "c"=>300} + * h1 #=> {"a"=>100, "b"=>200, "c"=>300} */ static VALUE