Permalink
Browse files

fix String#last example

  • Loading branch information...
1 parent 53ef85d commit 39c483fec56b98b0cdb11b705cd7e63b43d60a64 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
@@ -90,7 +90,7 @@ def first(limit = 1)
#
# str = "hello"
# str.last #=> "o"
- # str.last(1) #=> "h"
+ # str.last(1) #=> "o"
# str.last(2) #=> "lo"
# str.last(0) #=> ""
# str.last(6) #=> "hello"

0 comments on commit 39c483f

Please sign in to comment.