Skip to content

Commit d549db8

Browse files
author
Vitali Lovich
committed
Fix tidy violation
1 parent b1f04a3 commit d549db8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/libstd/sync/condvar.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,11 @@ impl Condvar {
466466
///
467467
/// // wait for the thread to start up
468468
/// let &(ref lock, ref cvar) = &*pair;
469-
/// let result = cvar.wait_timeout_until(lock.lock().unwrap(), Duration::from_millis(100), |started| {
470-
/// *started
471-
/// }).unwrap();
469+
/// let result = cvar.wait_timeout_until(
470+
/// lock.lock().unwrap(),
471+
/// Duration::from_millis(100),
472+
/// |started| started,
473+
/// ).unwrap();
472474
/// if result.1.timed_out() {
473475
/// // timed-out without the condition ever evaluating to true.
474476
/// }

0 commit comments

Comments
 (0)