diff options
| author | Vitali Lovich <vlovich@google.com> | 2018-02-17 09:17:58 -0800 |
|---|---|---|
| committer | Vitali Lovich <vlovich@google.com> | 2018-02-17 09:17:58 -0800 |
| commit | d549db8031a07b79009f9efe8b3233cd8900c82b (patch) | |
| tree | f9c668b9e7a6c6278a49941b985bf479e39fd3cd /src/libstd/sync | |
| parent | b1f04a3a2e1a01ea1b77153dd8d22e7837542aa0 (diff) | |
| download | rust-d549db8031a07b79009f9efe8b3233cd8900c82b.tar.gz rust-d549db8031a07b79009f9efe8b3233cd8900c82b.zip | |
Fix tidy violation
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/condvar.rs | 8 |
1 files changed, 5 insertions, 3 deletions
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. /// } |
