Skip to content

Commit

Permalink
Rollup merge of rust-lang#64039 - pickfire:patch-1, r=jonas-schievink
Browse files Browse the repository at this point in the history
Update sync condvar doc style
  • Loading branch information
Centril authored Sep 1, 2019
2 parents 5d813c5 + e2e1175 commit 8cbbf97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libstd/sync/condvar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8cbbf97

Please sign in to comment.