Skip to content

Commit 16d12b4

Browse files
committed
make tests pass
1 parent 513f357 commit 16d12b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rust-2021/disjoint-capture-in-closures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ When running `cargo fix --edition`, Cargo will update the closures in your code
4040
Whenever any of the scenarios below are detected, `cargo fix` will insert a "dummy let" into your closure to force it to capture the entire variable:
4141

4242
```rust
43-
let x = (vec![], vec![]);
43+
let x = (vec![22], vec![23]);
4444
let c = move || {
4545
// "Dummy let" that forces `x` to be captured in its entirety
4646
let _ = &x;

0 commit comments

Comments
 (0)