File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ Switch the default parser from parse.y to Prism. [[Feature #20564]]
16
16
17
17
## Language changes
18
18
19
- * String literals in files without a ` frozen_string_literal ` comment now behave
20
- as if they were frozen. If they are mutated a deprecation warning is emitted .
19
+ * String literals in files without a ` frozen_string_literal ` comment now emit a deprecation warning
20
+ when they are mutated.
21
21
These warnings can be enabled with ` -W:deprecated ` or by setting ` Warning[:deprecated] = true ` .
22
22
To disable this change, you can run Ruby with the ` --disable-frozen-string-literal `
23
23
command line argument. [[ Feature #20205 ]]
@@ -66,6 +66,9 @@ Note: Excluding feature bug fixes.
66
66
from test.rb:2:in `<main>'
67
67
```
68
68
69
+ * ` Hash#inspect ` rendering has changed. [[ Bug #20433 ]]
70
+ * Symbol keys are displayed using the modern symbol key syntax: ` "{user: 1}" `
71
+ * Other keys now have spaces around ` => ` : ` '{"user" => 1}' ` , while previously they didn't: ` '{"user"=>1}' `
69
72
70
73
## C API updates
71
74
@@ -142,3 +145,4 @@ and is used all over the world especially for web development.
142
145
[ Feature #20265 ] : https://bugs.ruby-lang.org/issues/20265
143
146
[ Feature #20429 ] : https://bugs.ruby-lang.org/issues/20429
144
147
[ Feature #20564 ] : https://bugs.ruby-lang.org/issues/20564
148
+ [ Bug #20433 ] : https://bugs.ruby-lang.org/issues/20433
You can’t perform that action at this time.
0 commit comments