ruby-changes:37774
From: gogotanaka <ko1@a...>
Date: Thu, 5 Mar 2015 17:00:29 +0900 (JST)
Subject: [ruby-changes:37774] gogotanaka:r49855 (trunk): * hash.c: [DOC] #delete method actually returns nil, if the key
gogotanaka 2015-03-05 17:00:14 +0900 (Thu, 05 Mar 2015) New Revision: 49855 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49855 Log: * hash.c: [DOC] #delete method actually returns nil, if the key is not found. [fix GH-844][ci skip] Patch by @ivdma Modified files: trunk/ChangeLog trunk/hash.c Index: ChangeLog =================================================================== --- ChangeLog (revision 49854) +++ ChangeLog (revision 49855) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Mar 5 16:58:43 2015 Kazuki Tanaka <gogotanaka@r...> + + * hash.c: [DOC] #delete method actually returns nil, if the key + is not found. [fix GH-844][ci skip] Patch by @ivdma + Wed Mar 5 12:22:23 2015 Kazuki Tanaka <gogotanaka@r...> * math.c: refactoring: remove unnecessary variable d0 to unify code Index: hash.c =================================================================== --- hash.c (revision 49854) +++ hash.c (revision 49855) @@ -1057,8 +1057,8 @@ rb_hash_delete(VALUE hash, VALUE key) https://github.com/ruby/ruby/blob/trunk/hash.c#L1057 * hsh.delete(key) {| key | block } -> value * * Deletes the key-value pair and returns the value from <i>hsh</i> whose - * key is equal to <i>key</i>. If the key is not found, returns the - * <em>default value</em>. If the optional code block is given and the + * key is equal to <i>key</i>. If the key is not found, it returns + * <em>nil</em>. If the optional code block is given and the * key is not found, pass in the key and return the result of * <i>block</i>. * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/