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…
Reference in a new issue