From 744a858bd2adb01cb2aca143a1063ff3bdadfaed Mon Sep 17 00:00:00 2001 From: gogotanaka Date: Thu, 5 Mar 2015 08:00:14 +0000 Subject: * 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 --- hash.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hash.c') 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. * -- cgit v1.2.3