summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 14:54:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 14:58:51 +0900
commit7a94225e7d04f17ddd37433c3904b04fec97f281 (patch)
treee828c642ed1f7883fce738b64b89fa4c7e92e946 /NEWS
parenta8bddb3a189545a2bef8ee7cffdb328d8de7974c (diff)
Refined the warning message for numbered-parameter like variables
[Bug #16438]
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS2
1 files changed, 1 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index bfd93a4..e0efad8 100644
--- a/NEWS
+++ b/NEWS
@@ -127,7 +127,7 @@ 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 #=> warning: `_1' is used as numbered parameter
+ _1 = 0 #=> warning: `_1' is reserved for numbered parameter; consider another name
[1].each { p _1 } # prints 0 instead of 1
==== proc/lambda without block is deprecated