Skip to content

Commit ccbd7b2

Browse files
committed
changed comment
1 parent 1d5fd89 commit ccbd7b2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/custom_types/structs.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ fn main() {
5555
5656
// Make a new point by using struct update syntax to use the fields of our
5757
// other one
58-
let bottom_right = Point { x: 5.2, ..point };
58+
let bottom_right = Point { x: 5.2, ..another_point };
5959
60-
// `bottom_right.y` will be the same as `point.y` because we used that field
61-
// from `point`
60+
// `bottom_right.y` will be the same as `another_point.y` because we used that field
61+
// from `another_point`
6262
println!("second point: ({}, {})", bottom_right.x, bottom_right.y);
6363
6464
// Destructure the point using a `let` binding

0 commit comments

Comments
 (0)