diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-05-23 23:34:18 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-05-23 23:35:26 +0900 |
commit | c04ef141d2edd71f90f0707889b4adfd94e5be43 (patch) | |
tree | 77c2c3392ccbade24fd9f896f39c2f42d5328bd3 /enum.c | |
parent | e72769ef81a933959f4a85ee09eec66bedcbf022 (diff) |
enum.c (enum_tally): better example in rdoc
Diffstat (limited to 'enum.c')
-rw-r--r-- | enum.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1009,8 +1009,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 #=> {1=>1, 2=>1, 3=>1, 4=>1, 5=>1, 6=>1} - * + * ["a", "b", "c", "b"].tally #=> {"a"=>1, "b"=>2, "c"=>1} */ static VALUE |