Skip to content

Commit 1d5fd89

Browse files
committed
changed incorrect variable name
1 parent 4840dca commit 1d5fd89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_types/structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ 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, ..another_point };
58+
let bottom_right = Point { x: 5.2, ..point };
5959
6060
// `bottom_right.y` will be the same as `point.y` because we used that field
6161
// from `point`

0 commit comments

Comments
 (0)