diff options
author | gogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-05 08:00:14 +0000 |
---|---|---|
committer | gogotanaka <gogotanaka@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-05 08:00:14 +0000 |
commit | 744a858bd2adb01cb2aca143a1063ff3bdadfaed (patch) | |
tree | c2be60e715bf613d140c8092eaa778a211f21d5d | |
parent | a161bdf6f3f2f522579c9b7e19ede2a1c9790013 (diff) | |
download | ruby-744a858bd2adb01cb2aca143a1063ff3bdadfaed.tar.gz |
* hash.c: [DOC] #delete method actually returns nil, if the key
is not found. [fix GH-844][ci skip] Patch by @ivdma
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | hash.c | 4 |
2 files changed, 7 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Mar 5 16:58:43 2015 Kazuki Tanaka <gogotanaka@ruby-lang.org> + + * 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@ruby-lang.org> * math.c: refactoring: remove unnecessary variable d0 to unify code @@ -1057,8 +1057,8 @@ rb_hash_delete(VALUE hash, VALUE key) * 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>. * |