Skip to content

Commit

Permalink
fix String#last example
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Rodriguez committed May 11, 2012
1 parent ed116ed commit 53ef85d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/core_ext/string/access.rb
Expand Up @@ -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) #=> ""
Expand Down

0 comments on commit 53ef85d

Please sign in to comment.