mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-09 12:19:18 +00:00
Address review comments: make comment inline, fix format in print.
This commit is contained in:
parent
8587f2c53e
commit
1f2380a312
@ -12,9 +12,8 @@ fn main() {
|
|||||||
let y: Option<Point> = Some(Point { x: 100, y: 200 });
|
let y: Option<Point> = Some(Point { x: 100, y: 200 });
|
||||||
|
|
||||||
match y {
|
match y {
|
||||||
Some(p) => println!("Co-ordinates are{},{} ", p.x, p.y),
|
Some(p) => println!("Co-ordinates are {},{} ", p.x, p.y),
|
||||||
_ => println!("no match"),
|
_ => println!("no match"),
|
||||||
}
|
}
|
||||||
// Fix without deleting this line.
|
y; // Fix without deleting this line.
|
||||||
y;
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user