aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-11 13:16:35 -0500
committerFrancesco Rodriguez <lrodriguezsanc@gmail.com>2012-05-11 13:16:35 -0500
commit53ef85dae8081e81f7dbb1f09a6150777f509cd4 (patch)
treecbb47be09a2fa3f888baec5874e5900118945323
parented116eda053e8cccb5dda1c4724f8609eceaa90f (diff)
downloadrails-53ef85dae8081e81f7dbb1f09a6150777f509cd4.tar.gz
rails-53ef85dae8081e81f7dbb1f09a6150777f509cd4.tar.bz2
rails-53ef85dae8081e81f7dbb1f09a6150777f509cd4.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 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 @@ class String
# 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) #=> ""