aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-21 21:30:47 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-10-21 21:32:40 +0900
commitec2da08e2b65902168d7f4a6bed86c6c8842aa02 (patch)
tree1c15aa7822381d26f980dfd9d81dd9d3c1ae5ba2
parent228ebdbf2fe65c673be8b6240cdec4f1b266eb2f (diff)
downloadruby-ec2da08e2b65902168d7f4a6bed86c6c8842aa02.tar.gz
NEWS: fixed indents [ci skip]
-rw-r--r--NEWS12
1 files changed, 6 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index 21998e1202..2724c34e82 100644
--- a/NEWS
+++ b/NEWS
@@ -97,7 +97,7 @@ sufficient information, see the ChangeLog file or Redmine
* Non-Symbol keys in a keyword arguments hash were prohibited in 2.6.0,
but are now allowed again. [Bug #15658]
- def foo(**kw); p kw; end; foo("str" => 1) #=> {"str"=>1}
+ def foo(**kw); p kw; end; foo("str" => 1) #=> {"str"=>1}
* <code>**nil</code> is allowed in method definitions to explicitly mark
that the method accepts no keywords. Calling such a method with keywords
@@ -198,9 +198,9 @@ Comparable::
* Comparable#clamp now accepts a Range argument. [Feature #14784]
- -1.clamp(0..2) #=> 0
- 1.clamp(0..2) #=> 1
- 3.clamp(0..2) #=> 2
+ -1.clamp(0..2) #=> 0
+ 1.clamp(0..2) #=> 1
+ 3.clamp(0..2) #=> 2
Complex::
@@ -227,11 +227,11 @@ Enumerable::
* Added Enumerable#filter_map. [Feature #15323]
- [1, 2, 3].filter_map {|x| x.odd? ? x.to_s : nil } #=> ["1", "3"]
+ [1, 2, 3].filter_map {|x| x.odd? ? x.to_s : nil } #=> ["1", "3"]
* Added Enumerable#tally. [Feature #11076]
- ["A", "B", "C", "B", "A"].tally #=> {"A"=>2, "B"=>2, "C"=>1}
+ ["A", "B", "C", "B", "A"].tally #=> {"A"=>2, "B"=>2, "C"=>1}
Enumerator::