We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6eadfc3 + e2e1175 commit a7ba1beCopy full SHA for a7ba1be
src/libstd/sync/condvar.rs
@@ -28,14 +28,14 @@ impl WaitTimeoutResult {
28
/// once the boolean has been updated and notified.
29
///
30
/// ```
31
- /// use std::sync::{Arc, Mutex, Condvar};
+ /// use std::sync::{Arc, Condvar, Mutex};
32
/// use std::thread;
33
/// use std::time::Duration;
34
35
/// let pair = Arc::new((Mutex::new(false), Condvar::new()));
36
/// let pair2 = pair.clone();
37
38
- /// thread::spawn(move|| {
+ /// thread::spawn(move || {
39
/// let (lock, cvar) = &*pair2;
40
41
/// // Let's wait 20 milliseconds before notifying the condvar.
0 commit comments