Skip to content

Commit 2a42ae1

Browse files
committed
Remove example lead-in from array slice capturing rule
Let's remove the explicit lead-in to the example from the rule about (the lack of) partial captures of arrays and slices.
1 parent 8ce5539 commit 2a42ae1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/types/closure.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ c();
282282

283283
r[type.closure.capture.precision.wildcard.array-slice]
284284
Partial captures of arrays and slices are not supported; the entire slice or array is always captured even if used with wildcard pattern matching, indexing, or sub-slicing.
285-
For example:
286285

287286
```rust,compile_fail,E0382
288287
#[derive(Debug)]

0 commit comments

Comments
 (0)