From 44a1f51695058159ff2f191c97a082bed9665137 Mon Sep 17 00:00:00 2001 From: Marcus Stollsteimer Date: Tue, 24 Dec 2019 09:49:22 +0100 Subject: [PATCH] NEWS: improve sections for warning option / Warning --- NEWS | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 206e385212..fbe422371d 100644 --- a/NEWS +++ b/NEWS @@ -247,14 +247,14 @@ sufficient information, see the ChangeLog file or Redmine * Refinements take place at Object#method and Module#instance_method. [Feature #15373] -=== Command line option +=== Command line options ==== Warning option -+-W+ option has been extended with a following +:+, to manage categorized +The +-W+ option has been extended with a following +:+, to manage categorized warnings. [Feature #16345] [Feature #16420] -* To suppress the deprecation warning: +* To suppress deprecation warnings: $ ruby -e '$; = ""' -e:1: warning: `$;' is deprecated @@ -265,7 +265,7 @@ warnings. [Feature #16345] [Feature #16420] $ RUBYOPT=-W:no-deprecated ruby -e '$; = //' -* To suppress experimental feature warning: +* To suppress experimental feature warnings: $ ruby -e '0 in a' -e:1: warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby! @@ -545,7 +545,7 @@ Warning:: New methods:: - * Added Warning.[] and Warning.[]= to manage emit/suppress of + * Added Warning.[] and Warning.[]= to manage emitting/suppressing some categories of warnings. [Feature #16345] [Feature #16420] $LOAD_PATH::