mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added code fence to the example in [Feature #17724] [ci skip]
This commit is contained in:
parent
95f8ffa5f6
commit
25689024cf
1 changed files with 3 additions and 1 deletions
4
NEWS.md
4
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
|
||||
|
|
Loading…
Add table
Reference in a new issue