mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enum.c (group_by): Improve group_by description. Patch by b t. [#5411]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ee1acd6a83
commit
82f1f640ec
2 changed files with 8 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Oct 8 08:54:56 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* enum.c (group_by): Improve group_by description. Patch by b t.
|
||||
[#5411]
|
||||
|
||||
Sat Oct 8 03:17:51 2011 Eric Hodel <drbrain@segment7.net>
|
||||
|
||||
* lib/shell.rb: Document some methods of Shell. Patch by Carol
|
||||
|
|
4
enum.c
4
enum.c
|
@ -658,8 +658,8 @@ group_by_i(VALUE i, VALUE hash, int argc, VALUE *argv)
|
|||
* enum.group_by -> an_enumerator
|
||||
*
|
||||
* Groups the collection by result of the block. Returns a hash where the
|
||||
* keys are the evaluated result from the block and values the values are
|
||||
* arrays of elements in the collection that corresponding to the key.
|
||||
* keys are the evaluated result from the block and the values are
|
||||
* arrays of elements in the collection that correspond to the key.
|
||||
*
|
||||
* If no block is given an enumerator is returned.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue