From b222a1a49473490ef8903b76868de86cd0a2164e Mon Sep 17 00:00:00 2001 From: Kazuki Tsujimoto Date: Wed, 23 Dec 2020 02:32:30 +0900 Subject: Fix a message in example code Thanks to @zverok for the report. --- doc/syntax/pattern_matching.rdoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/syntax/pattern_matching.rdoc b/doc/syntax/pattern_matching.rdoc index 323f7ca6c7..2ab1e3ec74 100644 --- a/doc/syntax/pattern_matching.rdoc +++ b/doc/syntax/pattern_matching.rdoc @@ -261,7 +261,7 @@ Variables that start with _ are the only exclusions from this rule: 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 v1.2.3