From 39c483fec56b98b0cdb11b705cd7e63b43d60a64 Mon Sep 17 00:00:00 2001 From: Francesco Rodriguez Date: Fri, 11 May 2012 13:18:00 -0500 Subject: 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 2ebfd48818..5c32a2453d 100644 --- a/activesupport/lib/active_support/core_ext/string/access.rb +++ b/activesupport/lib/active_support/core_ext/string/access.rb @@ -90,7 +90,7 @@ class String # # str = "hello" # str.last #=> "o" - # str.last(1) #=> "h" + # str.last(1) #=> "o" # str.last(2) #=> "lo" # str.last(0) #=> "" # str.last(6) #=> "hello" -- cgit v1.2.3