Skip to content

Commit

Permalink
auto merge of #18136 : mprobinson/rust/example-warning, r=alexcrichton
Browse files Browse the repository at this point in the history
let mut value = mutex.lock();
warning: variable does not need to be mutable
  • Loading branch information
bors committed Oct 19, 2014
2 parents 4bb21f3 + 6e9646d commit e99dd20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsync/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
/// }
Expand Down

0 comments on commit e99dd20

Please sign in to comment.