aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-11 13:18:00 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-11 13:18:00 -0500
commit39c483fec56b98b0cdb11b705cd7e63b43d60a64 (patch)
tree67d057a3a7b5c9d29fb3023341536f029e7eda57
parent53ef85dae8081e81f7dbb1f09a6150777f509cd4 (diff)
downloadrails-39c483fec56b98b0cdb11b705cd7e63b43d60a64.tar.gz
rails-39c483fec56b98b0cdb11b705cd7e63b43d60a64.tar.bz2
rails-39c483fec56b98b0cdb11b705cd7e63b43d60a64.zip
fix String#last example
-rw-r--r--activesupport/lib/active_support/core_ext/string/access.rb2
1 files changed, 1 insertions, 1 deletions
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"