[前][次][番号順一覧][スレッド一覧]

ruby-changes:58342

From: Nobuyoshi <ko1@a...>
Date: Mon, 21 Oct 2019 21:33:17 +0900 (JST)
Subject: [ruby-changes:58342] ec2da08e2b (master): NEWS: fixed indents [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=ec2da08e2b

From ec2da08e2b65902168d7f4a6bed86c6c8842aa02 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 21 Oct 2019 21:30:47 +0900
Subject: NEWS: fixed indents [ci skip]


diff --git a/NEWS b/NEWS
index 21998e1..2724c34 100644
--- a/NEWS
+++ b/NEWS
@@ -97,7 +97,7 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS#L97
   * 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:: https://github.com/ruby/ruby/blob/trunk/NEWS#L198
 
     * 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:: https://github.com/ruby/ruby/blob/trunk/NEWS#L227
 
     * 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::
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]