From 14b403c91ab9a1e4b776e00adcd9d88153e3b736 Mon Sep 17 00:00:00 2001 From: Vitali Lovich Date: Tue, 20 Feb 2018 13:07:21 -0800 Subject: Fix doc compile error --- src/libstd/sync/condvar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/condvar.rs b/src/libstd/sync/condvar.rs index 7f9b5667628..3e40cbb37e3 100644 --- a/src/libstd/sync/condvar.rs +++ b/src/libstd/sync/condvar.rs @@ -469,7 +469,7 @@ impl Condvar { /// let result = cvar.wait_timeout_until( /// lock.lock().unwrap(), /// Duration::from_millis(100), - /// |started| started, + /// |&mut started| started, /// ).unwrap(); /// if result.1.timed_out() { /// // timed-out without the condition ever evaluating to true. -- cgit 1.4.1-3-g733a5