Skip to content

Commit e2e1175

Browse files
authored
Update sync condvar doc style
1 parent b314654 commit e2e1175

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)