summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazuki Tsujimoto <kazuki@callcc.net>2020-12-23 02:32:30 +0900
committerKazuki Tsujimoto <kazuki@callcc.net>2020-12-23 02:37:27 +0900
commitb222a1a49473490ef8903b76868de86cd0a2164e (patch)
tree4193e2bccdfaa74401a0aed45813ca123c80046a
parent31b17a14abf9686a0a9b6777c6b47285f510b66a (diff)
Fix a message in example code
Thanks to @zverok for the report.
-rw-r--r--doc/syntax/pattern_matching.rdoc2
1 files changed, 1 insertions, 1 deletions
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 <code>_</code> 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.