Permalink
Browse files

Minor update to RDoc for enumerable#sum

  • Loading branch information...
1 parent 912da7f commit 0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd @ffmike ffmike committed May 4, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/enumerable.rb
@@ -42,7 +42,7 @@ def group_by
#
# The latter is a shortcut for:
#
- # payments.inject { |sum, p| sum + p.price }
+ # payments.inject(0) { |sum, p| sum + p.price }
#
# It can also calculate the sum without the use of a block.
#

0 comments on commit 0dc17a2

Please sign in to comment.