aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/MIT-LICENSE
diff options
context:
space:
mode:
authorErnie Miller <ernie@erniemiller.org>2014-04-18 14:55:30 -0400
committerErnie Miller <ernie@erniemiller.org>2014-04-18 14:55:30 -0400
commit9e67954dcfdc92f1087a03c0b1c61251d993e270 (patch)
tree3e9e799de5bbbf39c4ea506040e7912e590cdac3 /activesupport/MIT-LICENSE
parent99352088ca9629147150627b2702684f9bf1e608 (diff)
downloadrails-9e67954dcfdc92f1087a03c0b1c61251d993e270.tar.gz
rails-9e67954dcfdc92f1087a03c0b1c61251d993e270.tar.bz2
rails-9e67954dcfdc92f1087a03c0b1c61251d993e270.zip
Fix inconsistent behavior from String#first/#last
While calling String#first or String#last with zero or a Fixnum < the string's length returns a new string, a Fixnum >= the string's length returns the string itself. This inconsistency can lead to inadvertent mutation of a string.
Diffstat (limited to 'activesupport/MIT-LICENSE')
0 files changed, 0 insertions, 0 deletions