Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix String#last example

  • Loading branch information...
commit 39c483fec56b98b0cdb11b705cd7e63b43d60a64 1 parent 53ef85d
@frodsan frodsan authored
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
@@ -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"
Please sign in to comment.
Something went wrong with that request. Please try again.