From 5133bfad5df57c3399d1ec13a33e944d90fd613b Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 8 Feb 2019 09:57:23 +0000 Subject: enum.c: [DOC] tally does not take a block [Feature #11076] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- enum.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'enum.c') diff --git a/enum.c b/enum.c index 5a30ac2a98..d3df6e5b94 100644 --- a/enum.c +++ b/enum.c @@ -967,7 +967,7 @@ tally_i(RB_BLOCK_CALL_FUNC_ARGLIST(i, hash)) * elements and the values are numbers of elements in the collection * that correspond to the key. * - * (1..6).tally { |i| i%3 } #=> {0=>2, 1=>2, 2=>2} + * (1..6).tally #=> {1=>1, 2=>1, 3=>1, 4=>1, 5=>1, 6=>1} * */ -- cgit v1.2.3