summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-26 15:45:47 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-26 15:45:47 +0000
commit145fccbd42babfcdab7a0401cda78e7945152f6f (patch)
treee213d7d14c8e1b4eb448150a449846991fcc79ea /hash.c
parenta252c17e15b20480c54960e027b49ca9e9999543 (diff)
* hash.c (rb_hash_reject): add documentation that Hash#reject
without block returns enumerator. patched by Michael Edgar [Bug #4847] [ruby-core:36800] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hash.c b/hash.c
index 2045a536c1..4b5cd33b0d 100644
--- a/hash.c
+++ b/hash.c
@@ -944,6 +944,7 @@ rb_hash_reject_bang(VALUE hash)
/*
* call-seq:
* hsh.reject {| key, value | block } -> a_hash
+ * hsh.reject -> an_enumerator
*
* Same as <code>Hash#delete_if</code>, but works on (and returns) a
* copy of the <i>hsh</i>. Equivalent to