Skip to content

Commit be4fc63

Browse files
committed
auto merge of #12013 : Hywan/rust/doc, r=sanxiyn
2 parents 62caad2 + 3cb3f09 commit be4fc63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/tutorial.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ origin.y += 1.0; // ERROR: assigning to immutable field
624624
# let mypoint = Point { x: 0.0, y: 0.0 };
625625
match mypoint {
626626
Point { x: 0.0, y: yy } => println!("{}", yy),
627-
Point { x: xx, y: yy } => println!("{} {}", xx, yy),
627+
Point { x: xx, y: yy } => println!("{} {}", xx, yy)
628628
}
629629
~~~~
630630

@@ -639,7 +639,7 @@ reuses the field name as the binding name.
639639
# struct Point { x: f64, y: f64 }
640640
# let mypoint = Point { x: 0.0, y: 0.0 };
641641
match mypoint {
642-
Point { x, .. } => println!("{}", x),
642+
Point { x, .. } => println!("{}", x)
643643
}
644644
~~~
645645

0 commit comments

Comments
 (0)