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:
bors 2014-10-19 09:07:10 +00:00
commit e99dd205f8
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();
/// }