From b524523217b51e864c010646ffd5cbc4154d2fd3 Mon Sep 17 00:00:00 2001 From: knu Date: Wed, 21 May 2008 17:27:56 +0000 Subject: Merge from ruby_1_8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@16511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- hash.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 5a3d7ecfab..75db4d6b4f 100644 --- a/hash.c +++ b/hash.c @@ -702,10 +702,9 @@ rb_hash_indexes(argc, argv, hash) * hsh.delete(key) {| key | block } => value * * Deletes and returns a key-value pair 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 not found, pass in the key and return the result of - * block. + * equal to key. If the key is not found, 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. * * h = { "a" => 100, "b" => 200 } * h.delete("a") #=> 100 -- cgit v1.2.3