From 145fccbd42babfcdab7a0401cda78e7945152f6f Mon Sep 17 00:00:00 2001 From: naruse Date: Sun, 26 Jun 2011 15:45:47 +0000 Subject: [PATCH] * 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 --- ChangeLog | 6 ++++++ hash.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index d807e67e0e..e32d18d0b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Mon Jun 27 00:40:47 2011 NARUSE, Yui + + * hash.c (rb_hash_reject): add documentation that Hash#reject + without block returns enumerator. + patched by Michael Edgar [Bug #4847] [ruby-core:36800] + Sun Jun 26 23:49:21 2011 Tadayoshi Funaba * test/date/test_switch_hitter.rb: added a test. 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 Hash#delete_if, but works on (and returns) a * copy of the hsh. Equivalent to