summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 2 insertions, 2 deletions
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 <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>.
*