Skip to content

Commit 53ef85d

Browse files
author
Francesco Rodriguez
committed
fix String#last example
1 parent ed116ed commit 53ef85d

File tree

1 file changed

+1
-1
lines changed
  • activesupport/lib/active_support/core_ext/string

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/core_ext/string/access.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def first(limit = 1)
8989
# the given limit is greater than or equal to the string length, returns self.
9090
#
9191
# str = "hello"
92-
# str.last #=> "h"
92+
# str.last #=> "o"
9393
# str.last(1) #=> "h"
9494
# str.last(2) #=> "lo"
9595
# str.last(0) #=> ""

0 commit comments

Comments
 (0)