From 0a485b5a4cdc7742e34da7cfd55b58b59dc11634 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Enes=20Ayd=C4=B1n?= Date: Wed, 16 Jul 2025 19:31:04 +0300 Subject: [PATCH] Update destructuring-structs.md (#2807) In the #2749 , the match arm order has changed. Therefore, the word "second" should be changed to "first" in the notes. --- src/pattern-matching/destructuring-structs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pattern-matching/destructuring-structs.md b/src/pattern-matching/destructuring-structs.md index 9ca9811e..f0071686 100644 --- a/src/pattern-matching/destructuring-structs.md +++ b/src/pattern-matching/destructuring-structs.md @@ -24,7 +24,7 @@ Like tuples, Struct can also be destructured by matching: - The same effect occurs with `match &mut foo`: the captures become exclusive references. - The distinction between a capture and a constant expression can be hard to - spot. Try changing the `2` in the second arm to a variable, and see that it + spot. Try changing the `2` in the first arm to a variable, and see that it subtly doesn't work. Change it to a `const` and see it working again.