1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

NEWS: merge Range and Regexp being frozen [doc]

This commit is contained in:
Marc-Andre Lafortune 2020-11-15 17:44:48 -05:00
parent cd50ff8082
commit fd46ff9d42

View file

@ -192,10 +192,6 @@ Outstanding ones only.
p C.ancestors #=> [C, M1, M2, Object, Kernel, BasicObject]
```
* Range
* All Range objects are frozen. [Feature #15504]
* Thread
* Introduce `Fiber.set_scheduler` for intercepting blocking operations and
@ -338,10 +334,10 @@ Outstanding ones only.
Excluding feature bug fixes.
* Regexp literals are frozen [[Feature #8948]] [[Feature #16377]]
* Regexp literals and all Range objects are frozen [[Feature #8948]] [[Feature #16377] [Feature #15504]]
```ruby
/foo/.frozen? #=> true
(42...).frozen? # => true
```
* EXPERIMENTAL: Hash#each consistently yields a 2-element array [[Bug #12706]]