auto merge of #18136 : mprobinson/rust/example-warning, r=alexcrichton
let mut value = mutex.lock(); warning: variable does not need to be mutable
This commit is contained in:
commit
e99dd205f8
@ -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…
x
Reference in New Issue
Block a user