Browse files

fix String#last example

  • Loading branch information...
1 parent ed116ed commit 53ef85dae8081e81f7dbb1f09a6150777f509cd4 Francesco Rodriguez committed May 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/access.rb
View
2 activesupport/lib/active_support/core_ext/string/access.rb
@@ -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) #=> ""

0 comments on commit 53ef85d

Please sign in to comment.