Skip to content

Commit

Permalink
Merge pull request #335 from BillXWB/master
Browse files Browse the repository at this point in the history
Fix a syntax error in leaking.md
  • Loading branch information
ehuss authored Feb 2, 2022
2 parents 9493715 + 3273396 commit 98a2ca0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/leaking.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ Usage looked like:
```rust,ignore
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 {
// Move the mutable reference into the closure, and execute
// it on a different thread. The closure has a lifetime bound
Expand Down

0 comments on commit 98a2ca0

Please sign in to comment.