mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
fix(options3): panic when not matching to avoid false positives
Closes #1503
This commit is contained in:
parent
9ffcab07bf
commit
3ecb47ff2c
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ fn main() {
|
|||
|
||||
match y {
|
||||
Some(p) => println!("Co-ordinates are {},{} ", p.x, p.y),
|
||||
_ => println!("no match"),
|
||||
_ => panic!("no match!"),
|
||||
}
|
||||
y; // Fix without deleting this line.
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue