From 32733960df25bd7c70e83480dfcd543554c76f6f Mon Sep 17 00:00:00 2001 From: Kirin <1370302499@qq.com> Date: Wed, 2 Feb 2022 21:06:22 +0800 Subject: [PATCH] Fix a syntax error in leaking.md --- src/leaking.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leaking.md b/src/leaking.md index cf592ef..8c2ea02 100644 --- a/src/leaking.md +++ b/src/leaking.md @@ -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