mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
1616dcb16e
commit
5133bfad5d
1 changed files with 1 additions and 1 deletions
2
enum.c
2
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}
|
||||
*
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in a new issue