Skip to content

Commit 46531fc

Browse files
committed
Improve 3.1.0 post (en)
* Add links for features. * Fix indentation for code examples in list.
1 parent 91fb4a6 commit 46531fc

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

en/news/_posts/2021-12-25-ruby-3-1-0-released.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,25 @@ If documentation is installed when you select a completion candidate, the docume
7878

7979
### Language
8080

81-
* Values in Hash literals and keyword arguments can be omitted. [Feature #14579]
81+
* Values in Hash literals and keyword arguments can be omitted. [[Feature #14579]](https://bugs.ruby-lang.org/issues/14579)
8282
* `{x:, y:}` is syntax sugar for `{x: x, y: y}`.
8383
* `foo(x:, y:)` is syntax sugar for `foo(x: x, y: y)`.
8484

85-
* The pin operator (`^`) in pattern matching now takes an expression. [Feature #17411]
85+
* The pin operator (`^`) in pattern matching now takes an expression. [[Feature #17411]](https://bugs.ruby-lang.org/issues/17411)
8686

87-
```ruby
88-
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
89-
#=> [[3, 5], [5, 7], [11, 13]]
90-
```
87+
```ruby
88+
Prime.each_cons(2).lazy.find_all{_1 in [n, ^(n + 2)]}.take(3).to_a
89+
#=> [[3, 5], [5, 7], [11, 13]]
90+
```
9191

92-
* Parentheses can be omitted in one-line pattern matching. [Feature #16182]
92+
* Parentheses can be omitted in one-line pattern matching. [[Feature #16182]](https://bugs.ruby-lang.org/issues/16182)
9393

94-
```ruby
95-
[0, 1] => _, x
96-
{y: 2} => y:
97-
x #=> 1
98-
y #=> 2
99-
```
94+
```ruby
95+
[0, 1] => _, x
96+
{y: 2} => y:
97+
x #=> 1
98+
y #=> 2
99+
```
100100

101101
### RBS
102102

0 commit comments

Comments
 (0)