We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1f04a3 commit d549db8Copy full SHA for d549db8
src/libstd/sync/condvar.rs
@@ -466,9 +466,11 @@ impl Condvar {
466
///
467
/// // wait for the thread to start up
468
/// 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();
+ /// let result = cvar.wait_timeout_until(
+ /// lock.lock().unwrap(),
+ /// Duration::from_millis(100),
472
+ /// |started| started,
473
+ /// ).unwrap();
474
/// if result.1.timed_out() {
475
/// // timed-out without the condition ever evaluating to true.
476
/// }
0 commit comments