Permalink
Browse files

Merge pull request #3212 from ayrton/master

incorrect to_formatted_s example
  • Loading branch information...
2 parents 96aa3bd + 02b0f8d commit 997efed1030ac1f806c3ae180c7a4667dd488d4c @spastorino spastorino committed Oct 4, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/range/conversions.rb
@@ -7,7 +7,7 @@ class Range
#
# ==== Example
#
- # [1..100].to_formatted_s # => "1..100"
+ # (1..100).to_formatted_s # => "1..100"
def to_formatted_s(format = :default)
if formatter = RANGE_FORMATS[format]
formatter.call(first, last)

0 comments on commit 997efed

Please sign in to comment.