Added code fence to the example in [Feature #17724] [ci skip]
This commit is contained in:
parent
95f8ffa5f6
commit
25689024cf
2
NEWS.md
2
NEWS.md
@ -17,9 +17,11 @@ Note that each entry is kept to a minimum, see links for details.
|
|||||||
* Pin operator now supports instance, class, and global variables.
|
* Pin operator now supports instance, class, and global variables.
|
||||||
[[Feature #17724]]
|
[[Feature #17724]]
|
||||||
|
|
||||||
|
```ruby
|
||||||
@n = 5
|
@n = 5
|
||||||
Prime.each_cons(2).lazy.find{_1 in [n, ^@n]}
|
Prime.each_cons(2).lazy.find{_1 in [n, ^@n]}
|
||||||
#=> [3, 5]
|
#=> [3, 5]
|
||||||
|
```
|
||||||
|
|
||||||
* Multiple assignment evaluation order has been made consistent with
|
* Multiple assignment evaluation order has been made consistent with
|
||||||
single assignment evaluation order. With single assignment, Ruby
|
single assignment evaluation order. With single assignment, Ruby
|
||||||
|
Loading…
x
Reference in New Issue
Block a user