mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
RDoc markdown parser needs explicit code block or more indents [ci skip]
This commit is contained in:
parent
384feb6c51
commit
bba2b70949
1 changed files with 2 additions and 0 deletions
2
NEWS.md
2
NEWS.md
|
@ -19,6 +19,7 @@ sufficient information, see the ChangeLog file or Redmine
|
||||||
accepting a single rest argument and no keywords.
|
accepting a single rest argument and no keywords.
|
||||||
[[Feature #16166]]
|
[[Feature #16166]]
|
||||||
|
|
||||||
|
```ruby
|
||||||
pr = proc{|*a, **kw| [a, kw]}
|
pr = proc{|*a, **kw| [a, kw]}
|
||||||
|
|
||||||
pr.call([1])
|
pr.call([1])
|
||||||
|
@ -28,6 +29,7 @@ sufficient information, see the ChangeLog file or Redmine
|
||||||
pr.call([1, {a: 1}])
|
pr.call([1, {a: 1}])
|
||||||
# 2.7 => [[1], {:a=>1}] # and deprecation warning
|
# 2.7 => [[1], {:a=>1}] # and deprecation warning
|
||||||
# 3.0 => [[[1, {:a=>1}]], {}]
|
# 3.0 => [[[1, {:a=>1}]], {}]
|
||||||
|
```
|
||||||
|
|
||||||
* $SAFE is now a normal global variable with no special behavior.
|
* $SAFE is now a normal global variable with no special behavior.
|
||||||
[[Feature #16131]]
|
[[Feature #16131]]
|
||||||
|
|
Loading…
Reference in a new issue