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

ruby-changes:64161

From: Nobuyoshi <ko1@a...>
Date: Tue, 15 Dec 2020 00:05:35 +0900 (JST)
Subject: [ruby-changes:64161] 6b3a808b84 (master): Fix code block indents [ci skip]

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

From 6b3a808b8476b61d6327f0c7a134736c1369779d Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 14 Dec 2020 23:57:13 +0900
Subject: Fix code block indents [ci skip]

RDoc::Markdown requires all block elements nested under bullet
list to be indended deeper than the first column of the list.

diff --git a/NEWS.md b/NEWS.md
index 4a5b8cc..6279aac 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -58,23 +58,23 @@ sufficient information, see the ChangeLog file or Redmine https://github.com/ruby/ruby/blob/trunk/NEWS.md#L58
     * `=>` is added. It can be used as like rightward assignment.
       [[Feature #17260]]
 
-    ```ruby
-    0 => a
-    p a #=> 0
+        ```ruby
+        0 => a
+        p a #=> 0
 
-    {b: 0, c: 1} => {b:}
-    p b #=> 0
-    ```
+        {b: 0, c: 1} => {b:}
+        p b #=> 0
+        ```
 
     * `in` is changed to return `true` or `false`. [[Feature #17371]]
 
-    ```ruby
-    # version 3.0
-    0 in 1 #=> false
+        ```ruby
+        # version 3.0
+        0 in 1 #=> false
 
-    # version 2.7
-    0 in 1 #=> raise NoMatchingPatternError
-    ```
+        # version 2.7
+        0 in 1 #=> raise NoMatchingPatternError
+        ```
 
 * Find pattern is added.  [EXPERIMENTAL]
   [[Feature #16828]]
-- 
cgit v0.10.2


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

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