Permalink
Browse files

Merge pull request #12841 from kuldeepaggarwal/in-group-documentation

Array#in_groups: documentation updated [ci skip]
  • Loading branch information...
2 parents 5b12213 + 8e5b6e6 commit d17e79b0f39f6300f10f6bda752ed36ea44137f2 @senny senny committed Nov 11, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/array/grouping.rb
@@ -53,7 +53,7 @@ def in_groups_of(number, fill_with = nil)
# ["4", "5"]
# ["6", "7"]
def in_groups(number, fill_with = nil)
- # size / number gives minor group size;
+ # size.div number gives minor group size;
# size % number gives how many objects need extra accommodation;
# each group hold either division or division + 1 items.
division = size.div number

0 comments on commit d17e79b

Please sign in to comment.