summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2020-11-15 17:44:48 -0500
committerMarc-Andre Lafortune <github@marc-andre.ca>2020-11-15 17:44:48 -0500
commitfd46ff9d421dd1ad20bf3275f3289477e836ce8c (patch)
treed0e6afba4dc2ff7358e445c5b5d89ec412c5d1ec
parentcd50ff8082edd6d7e3248b94d3a6a0194927302f (diff)
NEWS: merge Range and Regexp being frozen [doc]
-rw-r--r--NEWS.md10
1 files changed, 3 insertions, 7 deletions
diff --git a/NEWS.md b/NEWS.md
index 69996c61ec..b54b5b677a 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -57,7 +57,7 @@ sufficient information, see the ChangeLog file or Redmine
# version 3.0
{a: 0, b: 1} => {a:}
p a # => 0
-
+
# version 2.7
{a: 0, b: 1} in {a:}
p a # => 0
@@ -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]]