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

ruby-changes:64471

From: Kazuki <ko1@a...>
Date: Wed, 23 Dec 2020 02:37:59 +0900 (JST)
Subject: [ruby-changes:64471] b222a1a494 (master): Fix a message in example code

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

From b222a1a49473490ef8903b76868de86cd0a2164e Mon Sep 17 00:00:00 2001
From: Kazuki Tsujimoto <kazuki@c...>
Date: Wed, 23 Dec 2020 02:32:30 +0900
Subject: Fix a message in example code

Thanks to @zverok for the report.

diff --git a/doc/syntax/pattern_matching.rdoc b/doc/syntax/pattern_matching.rdoc
index 323f7ca..2ab1e3e 100644
--- a/doc/syntax/pattern_matching.rdoc
+++ b/doc/syntax/pattern_matching.rdoc
@@ -261,7 +261,7 @@ Variables that start with <code>_</code> are the only exclusions from this rule: https://github.com/ruby/ruby/blob/trunk/doc/syntax/pattern_matching.rdoc#L261
   else
     "not matched"
   end
-  # => "matched: 1"
+  # => "matched: 1, 2"
 
 It is, though, not advised to reuse bound value, as these pattern's goal is to signify discarded value.
 
-- 
cgit v0.10.2


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

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