diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-21 03:34:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-21 03:34:54 +0000 |
commit | 87b59f48f646082f23151114d8b99f61ef76cf01 (patch) | |
tree | 48618a4fac8e31abda1817449ebd1c7f0d1219e9 /hash.c | |
parent | fff1bdffd13bcc848ddbb7bb6b346763396241df (diff) |
* hash.c (rb_hash_delete): rdoc fix based on a patch from Gaston Ramos
<ramos.gaston AT gmail.com>. [ruby-core:16825]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -702,10 +702,9 @@ rb_hash_indexes(argc, argv, hash) * hsh.delete(key) {| key | block } => value * * Deletes and returns a key-value pair 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 not found, pass in the key and return the result of - * <i>block</i>. + * equal to <i>key</i>. If the key is not found, returns <code>nil</code>. + * 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>. * * h = { "a" => 100, "b" => 200 } * h.delete("a") #=> 100 |