Skip to content

Commit 805e016

Browse files
authored
Merge pull request #1440 from tylerturk/patch-1
Update structs.md
2 parents 5f8c6da + 3bc969c commit 805e016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_types/structs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn main() {
5959
println!("second point: ({}, {})", bottom_right.x, bottom_right.y);
6060
6161
// Destructure the point using a `let` binding
62-
let Point { x: top_edge, y: left_edge } = point;
62+
let Point { x: left_edge, y: top_edge } = point;
6363
6464
let _rectangle = Rectangle {
6565
// struct instantiation is an expression too

0 commit comments

Comments
 (0)