Skip to content

Commit

Permalink
Fix a message in example code
Browse files Browse the repository at this point in the history
Thanks to @zverok for the report.
  • Loading branch information
k-tsj committed Dec 22, 2020
1 parent 31b17a1 commit b222a1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/syntax/pattern_matching.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit b222a1a

Please sign in to comment.