Skip to content

Commit

Permalink
fix(options3): panic when not matching to avoid false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
nmay231 committed May 9, 2023
1 parent 9ffcab0 commit 3ecb47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/options/options3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
}

0 comments on commit 3ecb47f

Please sign in to comment.