From 53ef85dae8081e81f7dbb1f09a6150777f509cd4 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Fri, 11 May 2012 13:16:35 -0500 Subject: [PATCH] fix String#last example --- activesupport/lib/active_support/core_ext/string/access.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activesupport/lib/active_support/core_ext/string/access.rb b/activesupport/lib/active_support/core_ext/string/access.rb index 76b30b4c19..2ebfd48818 100644 --- a/activesupport/lib/active_support/core_ext/string/access.rb +++ b/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) #=> "" -- GitLab