aboutsummaryrefslogtreecommitdiffstats
path: root/NEWS
diff options
context:
space:
mode:
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS6
1 files changed, 3 insertions, 3 deletions
diff --git a/NEWS b/NEWS
index 73be13e4bc..958385f6f9 100644
--- a/NEWS
+++ b/NEWS
@@ -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