Skip to content

Commit 0a485b5

Browse files
authored
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.
1 parent 059b44b commit 0a485b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pattern-matching/destructuring-structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Like tuples, Struct can also be destructured by matching:
2424
- The same effect occurs with `match &mut foo`: the captures become exclusive
2525
references.
2626
- The distinction between a capture and a constant expression can be hard to
27-
spot. Try changing the `2` in the second arm to a variable, and see that it
27+
spot. Try changing the `2` in the first arm to a variable, and see that it
2828
subtly doesn't work. Change it to a `const` and see it working again.
2929

3030
</details>

0 commit comments

Comments
 (0)