* 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:
drbrain 2011-10-07 23:55:41 +00:00
Родитель ee1acd6a83
Коммит 82f1f640ec
2 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -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
Просмотреть файл

@ -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.
*