mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix code block indents [ci skip]
RDoc::Markdown requires all block elements nested under bullet list to be indended deeper than the first column of the list.
This commit is contained in:
parent
b3e99b3676
commit
6b3a808b84
1 changed files with 12 additions and 12 deletions
24
NEWS.md
24
NEWS.md
|
@ -58,23 +58,23 @@ sufficient information, see the ChangeLog file or Redmine
|
||||||
* `=>` is added. It can be used as like rightward assignment.
|
* `=>` is added. It can be used as like rightward assignment.
|
||||||
[[Feature #17260]]
|
[[Feature #17260]]
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
0 => a
|
0 => a
|
||||||
p a #=> 0
|
p a #=> 0
|
||||||
|
|
||||||
{b: 0, c: 1} => {b:}
|
{b: 0, c: 1} => {b:}
|
||||||
p b #=> 0
|
p b #=> 0
|
||||||
```
|
```
|
||||||
|
|
||||||
* `in` is changed to return `true` or `false`. [[Feature #17371]]
|
* `in` is changed to return `true` or `false`. [[Feature #17371]]
|
||||||
|
|
||||||
```ruby
|
```ruby
|
||||||
# version 3.0
|
# version 3.0
|
||||||
0 in 1 #=> false
|
0 in 1 #=> false
|
||||||
|
|
||||||
# version 2.7
|
# version 2.7
|
||||||
0 in 1 #=> raise NoMatchingPatternError
|
0 in 1 #=> raise NoMatchingPatternError
|
||||||
```
|
```
|
||||||
|
|
||||||
* Find pattern is added. [EXPERIMENTAL]
|
* Find pattern is added. [EXPERIMENTAL]
|
||||||
[[Feature #16828]]
|
[[Feature #16828]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue