Skip to content

Commit f62bf53

Browse files
authored
Merge pull request #1858 from 931573/master
Incorrect variable name according to comments
2 parents 4840dca + ccbd7b2 commit f62bf53

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/custom_types/structs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ fn main() {
5757
// other one
5858
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)