about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-10-19 09:07:10 +0000
committerbors <bors@rust-lang.org>2014-10-19 09:07:10 +0000
commite99dd205f8442a89dd888fd88b9a7fed85e7931a (patch)
tree2adc12df433ef808e3aa94d9992cabc59a9ae02c
parent4bb21f37efd7a22f2c7a2f639e6c76e645c760c3 (diff)
parent6e9646dfb0013c95df41bd203eba3dae0451f103 (diff)
downloadrust-e99dd205f8442a89dd888fd88b9a7fed85e7931a.tar.gz
rust-e99dd205f8442a89dd888fd88b9a7fed85e7931a.zip
auto merge of #18136 : mprobinson/rust/example-warning, r=alexcrichton
let mut value = mutex.lock();
warning: variable does not need to be mutable
-rw-r--r--src/libsync/lock.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsync/lock.rs b/src/libsync/lock.rs
index 951a945f73a..78a7d128be5 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();
 /// }