summaryrefslogtreecommitdiff
path: root/NEWS.md
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-16 11:23:36 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-07-16 11:26:30 +0900
commit25689024cf3ab81c950cca3f0d17dff9f9036e22 (patch)
treeb059d90f0ba2571d3de6996325d3e4ac3116313d /NEWS.md
parent95f8ffa5f6c70aa9383e1f6db02b22707c183402 (diff)
Added code fence to the example in [Feature #17724] [ci skip]
Diffstat (limited to 'NEWS.md')
-rw-r--r--NEWS.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/NEWS.md b/NEWS.md
index 5f0b5a6b2c..b30d707b4d 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -15,11 +15,13 @@ Note that each entry is kept to a minimum, see links for details.
```
* Pin operator now supports instance, class, and global variables.
- [[Feature #17724]]
+ [[Feature #17724]]
+ ```ruby
@n = 5
Prime.each_cons(2).lazy.find{_1 in [n, ^@n]}
#=> [3, 5]
+ ```
* Multiple assignment evaluation order has been made consistent with
single assignment evaluation order. With single assignment, Ruby