diff options
author | Nobuyoshi Nakada <[email protected]> | 2019-09-28 13:51:27 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2019-09-28 13:51:27 +0900 |
commit | 550a6a6bc1be4ff9aa6b65f6ad9b45c3fa2d1344 (patch) | |
tree | 5b9a11ce4f0b83609ffb1560007dcfe51a5f0db2 | |
parent | d474243e8c635a011ce2789660cb71b3f6815317 (diff) |
NEWS: marked up `**nil` [ci skip]
-rw-r--r-- | NEWS | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -66,9 +66,9 @@ sufficient information, see the ChangeLog file or Redmine def foo(**kw); p kw; end; foo("str" => 1) #=> {"str"=>1} -* **nil is allowed in method definitions to explicitly mark that the - method accepts no keywords. Calling such a method with keywords will - result in an ArgumentError. [Feature #14183] +* <code>**nil</code> is allowed in method definitions to explicitly mark + that the method accepts no keywords. Calling such a method with keywords + will result in an ArgumentError. [Feature #14183] def foo(h, **nil); end; foo(key: 1) # ArgumentError def foo(h, **nil); end; foo(**{key: 1}) # ArgumentError |