From d549db8031a07b79009f9efe8b3233cd8900c82b Mon Sep 17 00:00:00 2001 From: Vitali Lovich Date: Sat, 17 Feb 2018 09:17:58 -0800 Subject: Fix tidy violation --- src/libstd/sync/condvar.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libstd/sync') diff --git a/src/libstd/sync/condvar.rs b/src/libstd/sync/condvar.rs index 546e105deb7..7f9b5667628 100644 --- a/src/libstd/sync/condvar.rs +++ b/src/libstd/sync/condvar.rs @@ -466,9 +466,11 @@ impl Condvar { /// /// // wait for the thread to start up /// let &(ref lock, ref cvar) = &*pair; - /// let result = cvar.wait_timeout_until(lock.lock().unwrap(), Duration::from_millis(100), |started| { - /// *started - /// }).unwrap(); + /// let result = cvar.wait_timeout_until( + /// lock.lock().unwrap(), + /// Duration::from_millis(100), + /// |started| started, + /// ).unwrap(); /// if result.1.timed_out() { /// // timed-out without the condition ever evaluating to true. /// } -- cgit 1.4.1-3-g733a5