File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ Ruby 2.3.0-preview1 is the first preview of Ruby 2.3.0.
13
13
Many new features and improvements are included.
14
14
15
15
[ Frozen String Literal
16
- Pragma] ( https://bugs.ruby-lang.org/issues/11473 ) is introduced. On
17
- Ruby 2.1, ` "str".freeze ` is optimized to reduce object allocation.
16
+ Pragma] ( https://bugs.ruby-lang.org/issues/11473 ) is introduced.
17
+ With Ruby 2.1, ` "str".freeze ` was optimized to reduce object allocation.
18
18
Ruby 2.3 introduces a new magic comment and command line option to
19
- specify all the string literals in the source files.
19
+ freeze all string literals in the source files.
20
20
Additionally for debugging, you can get where the object is created on
21
21
` "can't modify frozen String" ` error by
22
22
` --enable-frozen-string-literal-debug ` .
You can’t perform that action at this time.
0 commit comments