diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-08 09:57:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-02-08 09:57:23 +0000 |
commit | 5133bfad5df57c3399d1ec13a33e944d90fd613b (patch) | |
tree | dad9826991e9c0fbc46f3265d5410678e17aa327 /enum.c | |
parent | 1616dcb16ef34ebf4ffc2167292f9a779f3e121e (diff) |
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
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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} * */ |