We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4840dca commit 1d5fd89Copy full SHA for 1d5fd89
src/custom_types/structs.md
@@ -55,7 +55,7 @@ fn main() {
55
56
// Make a new point by using struct update syntax to use the fields of our
57
// other one
58
- let bottom_right = Point { x: 5.2, ..another_point };
+ let bottom_right = Point { x: 5.2, ..point };
59
60
// `bottom_right.y` will be the same as `point.y` because we used that field
61
// from `point`
0 commit comments