mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
fixed finger-dyslexia in active_support core extensions guide
This commit is contained in:
@@ -1301,7 +1301,7 @@ NOTE: Defined in +active_support/core_ext/string/output_safety.rb+.
|
||||
|
||||
h5. Transformation
|
||||
|
||||
As a rule of thumb, except perhaps for concatenation as explained above, any method that may change a string gives you an unsafe string. These are +donwcase+, +gsub+, +strip+, +chomp+, +underscore+, etc.
|
||||
As a rule of thumb, except perhaps for concatenation as explained above, any method that may change a string gives you an unsafe string. These are +downcase+, +gsub+, +strip+, +chomp+, +underscore+, etc.
|
||||
|
||||
In the case of in-place transformations like +gsub!+ the receiver itself becomes unsafe.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user