Fix tidy violation
This commit is contained in:
@@ -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.
|
||||
/// }
|
||||
|
||||
Reference in New Issue
Block a user