mirror of
https://git.aramjonghu.dev/AramJonghu/rustlings.git
synced 2026-09-07 10:13:31 +02:00
feat(options): completed options
This commit is contained in:
@@ -9,7 +9,9 @@ fn main() {
|
||||
|
||||
// TODO: Fix the compiler error by adding something to this match statement.
|
||||
match optional_point {
|
||||
Some(p) => println!("Coordinates are {},{}", p.x, p.y),
|
||||
Some(ref p) => {
|
||||
println!("Coordinates are {},{}", p.x, p.y)
|
||||
}
|
||||
_ => panic!("No match!"),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user