Skip to content

Commit a7ba1be

Browse files
authored
Rollup merge of #64039 - pickfire:patch-1, r=jonas-schievink
Update sync condvar doc style
2 parents 6eadfc3 + e2e1175 commit a7ba1be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/sync/condvar.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ impl WaitTimeoutResult {
2828
/// once the boolean has been updated and notified.
2929
///
3030
/// ```
31-
/// use std::sync::{Arc, Mutex, Condvar};
31+
/// use std::sync::{Arc, Condvar, Mutex};
3232
/// use std::thread;
3333
/// use std::time::Duration;
3434
///
3535
/// let pair = Arc::new((Mutex::new(false), Condvar::new()));
3636
/// let pair2 = pair.clone();
3737
///
38-
/// thread::spawn(move|| {
38+
/// thread::spawn(move || {
3939
/// let (lock, cvar) = &*pair2;
4040
///
4141
/// // Let's wait 20 milliseconds before notifying the condvar.

0 commit comments

Comments
 (0)