Skip to content

Commit 3273396

Browse files
committed
Fix a syntax error in leaking.md
1 parent 9493715 commit 3273396

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/leaking.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ Usage looked like:
209209
```rust,ignore
210210
let mut data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
211211
{
212-
let guards = vec![];
212+
let mut guards = vec![];
213213
for x in &mut data {
214214
// Move the mutable reference into the closure, and execute
215215
// it on a different thread. The closure has a lifetime bound

0 commit comments

Comments
 (0)