Address review comments: make comment inline, fix format in print.

This commit is contained in:
Sateesh Basavaraju 2021-05-13 21:54:50 +05:30
parent 8587f2c53e
commit 1f2380a312

View file

@ -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;
} }