Skip to content

Commit 6337498

Browse files
committed
Revise text about field matching and ..
Let's clean up the wording of this claim a bit. Let's put capturing in the present tense, rather than in the future tense, as that's how we're going to continue below. Let's take out, as well, the explicit lead-in to the example, as we're not generally doing that in these sections.
1 parent a5eb504 commit 6337498

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/types/closure.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,7 @@ x; // OK: `x` can be moved here.
247247
c();
248248
```
249249

250-
Fields matched with the [RestPattern] or [StructPatternEtCetera] are also not considered as read, and thus those fields will not be captured.
251-
The following illustrates some of these:
250+
Fields matched against [RestPattern] (`..`) or [StructPatternEtCetera] (also `..`) are not read, and those fields are not captured.
252251

253252
```rust
254253
let x = (String::from("a"), String::from("b"));

0 commit comments

Comments
 (0)