diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2011-10-04 05:34:25 -0700 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-10-04 05:34:25 -0700 |
commit | 997efed1030ac1f806c3ae180c7a4667dd488d4c (patch) | |
tree | f32c80afc035208d46a5e6f2befd7af6d2a9c4f5 | |
parent | 96aa3bd0eae0afa98a1a16d87f5e0b6fa0005dab (diff) | |
parent | 02b0f8d9ffb0b5ea7352cf84ac9daebb0a316660 (diff) | |
download | rails-997efed1030ac1f806c3ae180c7a4667dd488d4c.tar.gz rails-997efed1030ac1f806c3ae180c7a4667dd488d4c.tar.bz2 rails-997efed1030ac1f806c3ae180c7a4667dd488d4c.zip |
Merge pull request #3212 from ayrton/master
incorrect to_formatted_s example
-rw-r--r-- | activesupport/lib/active_support/core_ext/range/conversions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/range/conversions.rb b/activesupport/lib/active_support/core_ext/range/conversions.rb index 544e63132d..43134b4314 100644 --- a/activesupport/lib/active_support/core_ext/range/conversions.rb +++ b/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) |