1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix a message in example code

Thanks to @zverok for the report.
This commit is contained in:
Kazuki Tsujimoto 2020-12-23 02:32:30 +09:00
parent 31b17a14ab
commit b222a1a494
No known key found for this signature in database
GPG key ID: BCEA306C49B81CD7

View file

@ -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.