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:
parent
2c0f87610d
commit
6e9646dfb0
|
@ -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();
|
||||
/// }
|
||||
|
|
Loading…
Reference in New Issue