summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-14 16:05:15 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2019-12-14 16:05:15 +0900
commit90cdcefa78ee9f3c7c78db2c5f3df0fdba25d83f (patch)
tree3904bafce29b55b79c48484d95a8acfdae1c1f15 /NEWS
parente2708068ad65f7f9986adf4fb3a4fa660f430a5a (diff)
Update warnings in NEWS
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS10
1 files changed, 5 insertions, 5 deletions
diff --git a/NEWS b/NEWS
index c7dd2b3..4c8f105 100644
--- a/NEWS
+++ b/NEWS
@@ -127,8 +127,8 @@ sufficient information, see the ChangeLog file or Redmine
You can still define a local variable named _1 and so on, and that is honored when present, but renders warning.
- _1 = 0
- [1].each { p _1 } # prints 0 instead of 1, but also warns.
+ _1 = 0 #=> warning: `_1' is used as numbered parameter
+ [1].each { p _1 } # prints 0 instead of 1
==== proc/lambda without block is deprecated
@@ -138,7 +138,7 @@ sufficient information, see the ChangeLog file or Redmine
def foo
proc
end
- foo { puts "Hello" } #=> warning: Capturing the given block using Proc.new is deprecated; use `&block` instead
+ foo { puts "Hello" } #=> warning: Capturing the given block using Kernel#proc is deprecated; use `&block` instead
* Kernel#lambda with no block in a method called with a block raises an exception.
@@ -189,10 +189,10 @@ sufficient information, see the ChangeLog file or Redmine
def foo
class << Object.new
- yield
+ yield #=> warning: `yield' in class syntax will not be supported from Ruby 3.0. [Feature #15575]
end
end
- foo { p :ok } #=> warning: `yield' in class syntax will not be supported from Ruby 3.0.
+ foo { p :ok }
* Argument forwarding by <code>(...)</code> is introduced. [Feature #16253]