diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-05-04 17:22:40 -0500 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2009-05-04 17:22:40 -0500 |
commit | 0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd (patch) | |
tree | e7388f6d8aabf7f9ae17157f88a5c92ef236ed86 /activesupport | |
parent | 912da7fb98cfdabe68477db146eaf25bb98f0f7e (diff) | |
download | rails-0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd.tar.gz rails-0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd.tar.bz2 rails-0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd.zip |
Minor update to RDoc for enumerable#sum
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/enumerable.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/enumerable.rb b/activesupport/lib/active_support/core_ext/enumerable.rb index 8309b617ae..434a32b29b 100644 --- a/activesupport/lib/active_support/core_ext/enumerable.rb +++ b/activesupport/lib/active_support/core_ext/enumerable.rb @@ -42,7 +42,7 @@ module Enumerable # # 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. # |