diff --git a/src/custom_types/structs.md b/src/custom_types/structs.md index 227a261fb5..90dac52b6f 100644 --- a/src/custom_types/structs.md +++ b/src/custom_types/structs.md @@ -59,7 +59,7 @@ fn main() { println!("second point: ({}, {})", bottom_right.x, bottom_right.y); // Destructure the point using a `let` binding - let Point { x: top_edge, y: left_edge } = point; + let Point { x: left_edge, y: top_edge } = point; let _rectangle = Rectangle { // struct instantiation is an expression too