From 6e9646dfb0013c95df41bd203eba3dae0451f103 Mon Sep 17 00:00:00 2001 From: Mike Robinson Date: Sat, 18 Oct 2014 08:47:57 +0100 Subject: [PATCH] Fix warning in Struct sync::Mutex example let mut value = mutex.lock(); warning: variable does not need to be mutable --- src/libsync/lock.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/lock.rs b/src/libsync/lock.rs index 951a945f73a78..78a7d128be5f3 100644 --- a/src/libsync/lock.rs +++ b/src/libsync/lock.rs @@ -167,7 +167,7 @@ impl<'a> Condvar<'a> { /// val.cond.signal(); /// }); /// -/// let mut value = mutex.lock(); +/// let value = mutex.lock(); /// while *value != 2 { /// value.cond.wait(); /// }