New progress

This commit is contained in:
2023-05-22 05:13:08 -05:00
parent 5004cc3bbb
commit 5f8d837c7d
11 changed files with 28 additions and 24 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
// options3.rs
// Execute `rustlings hint options3` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
struct Point {
x: i32,
@@ -12,7 +11,7 @@ fn main() {
let y: Option<Point> = Some(Point { x: 100, y: 200 });
match y {
Some(p) => println!("Co-ordinates are {},{} ", p.x, p.y),
Some(ref p) => println!("Co-ordinates are {},{} ", p.x, p.y),
_ => println!("no match"),
}
y; // Fix without deleting this line.