Permalink
Browse files

fixing typo that crept in 2c8938f

  • Loading branch information...
1 parent 5683d68 commit f1eb69c5b27050494cbc91890b107abd1dadfd48 @vijaydev vijaydev committed Dec 23, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/guides/source/active_support_core_extensions.textile
@@ -1897,7 +1897,7 @@ The +inject+ method offers iteration with an accumulator:
<ruby>
[2, 3, 4].inject(1) {|product, i| product*i } # => 24
-</rubyproduct
+</ruby>
The block is expected to return the value for the accumulator in the next iteration, and this makes building mutable objects a bit cumbersome:

0 comments on commit f1eb69c

Please sign in to comment.