diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-27 11:17:50 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-27 11:17:50 -0500 |
| commit | 1da0f56d76e5d5117eac05af092bf0ab58b14c8f (patch) | |
| tree | 3ef8c1602c5f38d5a33d04d362533a5c5117a932 /rustlings/exercises/12_options/options3.rs | |
| parent | 0fcfd332dd5057a590371c28ed3e6b267f788b76 (diff) | |
rustlings: complete 12
Diffstat (limited to 'rustlings/exercises/12_options/options3.rs')
| -rw-r--r-- | rustlings/exercises/12_options/options3.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rustlings/exercises/12_options/options3.rs b/rustlings/exercises/12_options/options3.rs index c97b1d3..aecb7a5 100644 --- a/rustlings/exercises/12_options/options3.rs +++ b/rustlings/exercises/12_options/options3.rs @@ -9,7 +9,7 @@ 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!"), } |