aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorMike Gunderloy <MikeG1@larkfarm.com>2009-05-04 17:22:40 -0500
committerMike Gunderloy <MikeG1@larkfarm.com>2009-05-04 17:22:40 -0500
commit0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd (patch)
treee7388f6d8aabf7f9ae17157f88a5c92ef236ed86 /activesupport/lib
parent912da7fb98cfdabe68477db146eaf25bb98f0f7e (diff)
downloadrails-0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd.tar.gz
rails-0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd.tar.bz2
rails-0dc17a2616feb75305e16b0aaa7a54ff2a73d8bd.zip
Minor update to RDoc for enumerable#sum
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/enumerable.rb2
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.
#