diff --git a/src/libsync/lock.rs b/src/libsync/lock.rs index 951a945f73a78..78a7d128be5f3 100644 --- a/src/libsync/lock.rs +++ b/src/libsync/lock.rs @@ -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(); /// }