diff options
| author | bors <bors@rust-lang.org> | 2019-09-01 11:46:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-09-01 11:46:45 +0000 |
| commit | e29faf0d095a51f5a06cfc6208a914b13481e1fe (patch) | |
| tree | 6d2df0a7579896719197355c7cbd381f0c8ddc44 /src/libstd/sync | |
| parent | d0677b9abc143d64d6b0cd6720e36eb73674632f (diff) | |
| parent | 0211246c7bb0c5be619e8b4c7f52bcd01305f8c5 (diff) | |
| download | rust-e29faf0d095a51f5a06cfc6208a914b13481e1fe.tar.gz rust-e29faf0d095a51f5a06cfc6208a914b13481e1fe.zip | |
Auto merge of #64057 - Centril:rollup-nwtk2fb, r=Centril
Rollup of 5 pull requests Successful merges: - #63410 (Update BufWriter example to include call to flush()) - #64029 (Account for rounding errors when deciding the diagnostic boundaries) - #64032 (rustdoc use -Ccodegen-units=1 by default for test compile) - #64039 (Update sync condvar doc style) - #64042 (Fix word repetition in str documentation) Failed merges: r? @ghost
Diffstat (limited to 'src/libstd/sync')
| -rw-r--r-- | src/libstd/sync/condvar.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sync/condvar.rs b/src/libstd/sync/condvar.rs index aeff57716e8..65ce19f2a1b 100644 --- a/src/libstd/sync/condvar.rs +++ b/src/libstd/sync/condvar.rs @@ -28,14 +28,14 @@ impl WaitTimeoutResult { /// once the boolean has been updated and notified. /// /// ``` - /// use std::sync::{Arc, Mutex, Condvar}; + /// use std::sync::{Arc, Condvar, Mutex}; /// use std::thread; /// use std::time::Duration; /// /// let pair = Arc::new((Mutex::new(false), Condvar::new())); /// let pair2 = pair.clone(); /// - /// thread::spawn(move|| { + /// thread::spawn(move || { /// let (lock, cvar) = &*pair2; /// /// // Let's wait 20 milliseconds before notifying the condvar. |
