Fix warning in Struct sync::Mutex example

let mut value = mutex.lock();
warning: variable does not need to be mutable
This commit is contained in:
Mike Robinson 2014-10-18 08:47:57 +01:00
parent 2c0f87610d
commit 6e9646dfb0
1 changed files with 1 additions and 1 deletions

View File

@ -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();
/// }