aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2013-11-10 23:47:54 -0800
committerYves Senn <yves.senn@gmail.com>2013-11-10 23:47:54 -0800
commitd17e79b0f39f6300f10f6bda752ed36ea44137f2 (patch)
treed303d3ee50e037731b8dfd2e8e62983c9df26f22
parent5b1221347d371464fbf69900deef251a9c07fbe9 (diff)
parent8e5b6e68531206e3173eceb26bc5a722f790db86 (diff)
downloadrails-d17e79b0f39f6300f10f6bda752ed36ea44137f2.tar.gz
rails-d17e79b0f39f6300f10f6bda752ed36ea44137f2.tar.bz2
rails-d17e79b0f39f6300f10f6bda752ed36ea44137f2.zip
Merge pull request #12841 from kuldeepaggarwal/in-group-documentation
Array#in_groups: documentation updated [ci skip]
-rw-r--r--activesupport/lib/active_support/core_ext/array/grouping.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/array/grouping.rb b/activesupport/lib/active_support/core_ext/array/grouping.rb
index c0d6e5b70c..59bf704d65 100644
--- a/activesupport/lib/active_support/core_ext/array/grouping.rb
+++ b/activesupport/lib/active_support/core_ext/array/grouping.rb
@@ -53,7 +53,7 @@ class Array
# ["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