diff --git a/ChangeLog b/ChangeLog index d5ea67ed86..f246398162 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 5 16:58:43 2015 Kazuki Tanaka + + * 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 * math.c: refactoring: remove unnecessary variable d0 to unify code diff --git a/hash.c b/hash.c index c4a2c0f634..6ab27e8a77 100644 --- a/hash.c +++ b/hash.c @@ -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 hsh whose - * key is equal to key. If the key is not found, returns the - * default value. If the optional code block is given and the + * key is equal to key. If the key is not found, it returns + * nil. If the optional code block is given and the * key is not found, pass in the key and return the result of * block. *