Merge pull request #335 from BillXWB/master

Fix a syntax error in leaking.md
pull/336/head
Eric Huss 3 years ago committed by GitHub
commit 98a2ca0eef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save