ruby-changes:57998
From: Nobuyoshi <ko1@a...>
Date: Sat, 28 Sep 2019 13:52:10 +0900 (JST)
Subject: [ruby-changes:57998] d474243e8c (master): NEWS: Added module name to proc and lambda [ci skip]
https://git.ruby-lang.org/ruby.git/commit/?id=d474243e8c From d474243e8c635a011ce2789660cb71b3f6815317 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sat, 28 Sep 2019 13:49:49 +0900 Subject: NEWS: Added module name to proc and lambda [ci skip] RDoc cannot know if bare words are method name or not. diff --git a/NEWS b/NEWS index 183433e..73be13e 100644 --- a/NEWS +++ b/NEWS @@ -86,10 +86,10 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L86 h = {}; def foo(*a) a end; foo(h) # [{}] h = {}; def foo(a) a end; foo(h) # {} -* Proc.new and proc with no block in a method called with a block is warned - now. +* Proc.new and Kernel#proc with no block in a method called with a block is + warned now. -* lambda with no block in a method called with a block errs. +* Kernel#lambda with no block in a method called with a block errs. * Non-Symbol keys in a keyword arguments hash were prohibited in 2.6.0, but are now allowed again. [Bug #15658] -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/