Commit c483f00
committed
Clarify struct pattern binding shorthand
The existing text was slightly confusing with the way it worded "ref
and/or mut", and wasn't quite clear what it was referring to. I pulled
that out into a separate sentence. This also adds a sentence to make it
very clear that this is a shorthand.
This is somewhat a duplicate of
patterns.destructure.named-field-shorthand, but it seems fine to me to
have that.
This also reworks the example. The current example didn't fit this
section at all, and it's not entirely clear to me what the original
intention was here. Maybe that was intended for the destructuring
section? Either way, I just made this example fit this rule.1 parent 1d930e1 commit c483f00
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
810 | 810 | | |
811 | 811 | | |
812 | 812 | | |
813 | | - | |
| 813 | + | |
814 | 814 | | |
815 | 815 | | |
816 | 816 | | |
| |||
820 | 820 | | |
821 | 821 | | |
822 | 822 | | |
823 | | - | |
| 823 | + | |
824 | 824 | | |
825 | 825 | | |
826 | 826 | | |
| |||
0 commit comments