提交 997efed1 编写于 作者: S Santiago Pastorino

Merge pull request #3212 from ayrton/master

incorrect to_formatted_s example
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册