about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-09-01 11:39:29 +0200
committerGitHub <noreply@github.com>2019-09-01 11:39:29 +0200
commita7ba1befd79e89b244aeb410dcb2073ae25d71c6 (patch)
treebde891340cbfea2bc38f51b37d8d4a50106411d8 /src/libstd
parent6eadfc34591ff477b7dbfea44738c9eaccc83e92 (diff)
parente2e1175ce25b6a69954b0ad3cdb15c1b684b1d92 (diff)
downloadrust-a7ba1befd79e89b244aeb410dcb2073ae25d71c6.tar.gz
rust-a7ba1befd79e89b244aeb410dcb2073ae25d71c6.zip
Rollup merge of #64039 - pickfire:patch-1, r=jonas-schievink
Update sync condvar doc style
Diffstat (limited to 'src/libstd')
-rw-r--r--src/libstd/sync/condvar.rs4
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.