[前][次][番号順一覧][スレッド一覧]

ruby-changes:52567

From: mame <ko1@a...>
Date: Wed, 19 Sep 2018 11:07:38 +0900 (JST)
Subject: [ruby-changes:52567] mame:r64779 (trunk): * hash.c (rb_hash_update): remove a meticulous explanation

mame	2018-09-19 11:07:33 +0900 (Wed, 19 Sep 2018)

  New Revision: 64779

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

  Log:
    * hash.c (rb_hash_update): remove a meticulous explanation
    
    As per Marc-Andre's comment.  [Refs GH-1951]

  Modified files:
    trunk/hash.c
Index: hash.c
===================================================================
--- hash.c	(revision 64778)
+++ hash.c	(revision 64779)
@@ -2559,8 +2559,7 @@ rb_hash_update_block_i(VALUE key, VALUE https://github.com/ruby/ruby/blob/trunk/hash.c#L2559
  *  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}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]