mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
NEWS: document shorter opt_str_freeze usage
Users do not read commit messages, but maybe they read NEWS. r57828 ("compile.c: apply opt_str_freeze to String#-@ (uminus)") git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ec03990554
commit
adce0ea944
1 changed files with 2 additions and 0 deletions
2
NEWS
2
NEWS
|
@ -36,6 +36,8 @@ with all sufficient information, see the ChangeLog file or Redmine
|
||||||
|
|
||||||
* String#-@ deduplicates unfrozen strings. Already-frozen
|
* String#-@ deduplicates unfrozen strings. Already-frozen
|
||||||
strings remain unchanged for compatibility. [Feature #13077]
|
strings remain unchanged for compatibility. [Feature #13077]
|
||||||
|
* -"literal" (String#-@) optimized to return the same object
|
||||||
|
(same as "literal".freeze in Ruby 2.1+)
|
||||||
|
|
||||||
=== Stdlib updates (outstanding ones only)
|
=== Stdlib updates (outstanding ones only)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue