Skip to content

Commit 851d723

Browse files
committed
Make statement more self-standing
Rather than saying "this also includes", let's make this statement stand better on its own. This will be helpful when giving it a rule identifier, and given how this statement is some distance, visually, from the other statements due to the examples, it adds clarity.
1 parent a294512 commit 851d723

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ let c = || match x { // x is not captured
202202
c();
203203
```
204204

205-
This also includes destructuring of tuples, structs, and single-variant enums.
205+
Destructuring tuples, structs, and single-variant enums does not, by itself, cause a read or the place to be captured.
206206

207207
```rust,no_run
208208
struct S; // A non-`Copy` type.

0 commit comments

Comments
 (0)