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.