Fix a syntax error in leaking.md

pull/335/head
Kirin 3 years ago
parent 9493715a62
commit 32733960df

@ -209,7 +209,7 @@ Usage looked like:
```rust,ignore ```rust,ignore
let mut data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; let mut data = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
{ {
let guards = vec![]; let mut guards = vec![];
for x in &mut data { for x in &mut data {
// Move the mutable reference into the closure, and execute // Move the mutable reference into the closure, and execute
// it on a different thread. The closure has a lifetime bound // it on a different thread. The closure has a lifetime bound

Loading…
Cancel
Save