Skip to content

Commit

Permalink
changed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
931573 committed May 31, 2024
1 parent 1d5fd89 commit ccbd7b2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/custom_types/structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ fn main() {
// Make a new point by using struct update syntax to use the fields of our
// other one
let bottom_right = Point { x: 5.2, ..point };
let bottom_right = Point { x: 5.2, ..another_point };
// `bottom_right.y` will be the same as `point.y` because we used that field
// from `point`
// `bottom_right.y` will be the same as `another_point.y` because we used that field
// from `another_point`
println!("second point: ({}, {})", bottom_right.x, bottom_right.y);
// Destructure the point using a `let` binding
Expand Down

0 comments on commit ccbd7b2

Please sign in to comment.