Skip to content

Commit

Permalink
Merge pull request #1858 from 931573/master
Browse files Browse the repository at this point in the history
Incorrect variable name according to comments
  • Loading branch information
marioidival authored Jun 6, 2024
2 parents 4840dca + ccbd7b2 commit f62bf53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/custom_types/structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ fn main() {
// other one
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 f62bf53

Please sign in to comment.