提交 53ef85da 编写于 作者: F Francesco Rodriguez

fix String#last example

上级 ed116eda
......@@ -89,7 +89,7 @@ def first(limit = 1)
# the given limit is greater than or equal to the string length, returns self.
#
# str = "hello"
# str.last #=> "h"
# str.last #=> "o"
# str.last(1) #=> "h"
# str.last(2) #=> "lo"
# str.last(0) #=> ""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册