Fix tidy violation

This commit is contained in:
Vitali Lovich
2018-02-17 09:17:58 -08:00
parent b1f04a3a2e
commit d549db8031

View File

@@ -466,9 +466,11 @@ impl Condvar {
/// ///
/// // wait for the thread to start up /// // wait for the thread to start up
/// let &(ref lock, ref cvar) = &*pair; /// let &(ref lock, ref cvar) = &*pair;
/// let result = cvar.wait_timeout_until(lock.lock().unwrap(), Duration::from_millis(100), |started| { /// let result = cvar.wait_timeout_until(
/// *started /// lock.lock().unwrap(),
/// }).unwrap(); /// Duration::from_millis(100),
/// |started| started,
/// ).unwrap();
/// if result.1.timed_out() { /// if result.1.timed_out() {
/// // timed-out without the condition ever evaluating to true. /// // timed-out without the condition ever evaluating to true.
/// } /// }