summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.