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

ruby-changes:66805

From: Nobuyoshi <ko1@a...>
Date: Fri, 16 Jul 2021 11:27:01 +0900 (JST)
Subject: [ruby-changes:66805] 25689024cf (master): Added code fence to the example in [Feature #17724] [ci skip]

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

From 25689024cf3ab81c950cca3f0d17dff9f9036e22 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Fri, 16 Jul 2021 11:23:36 +0900
Subject: Added code fence to the example in [Feature #17724] [ci skip]

---
 NEWS.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/NEWS.md b/NEWS.md
index 5f0b5a6..b30d707 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -15,11 +15,13 @@ Note that each entry is kept to a minimum, see links for details. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L15
     ```
 
 * Pin operator now supports instance, class, and global variables.
-  [[Feature #17724]] 
+  [[Feature #17724]]
 
+    ```ruby
     @n = 5
     Prime.each_cons(2).lazy.find{_1 in [n, ^@n]}
     #=> [3, 5]
+    ```
 
 * Multiple assignment evaluation order has been made consistent with
   single assignment evaluation order.  With single assignment, Ruby
-- 
cgit v1.1


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

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