about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authoroliver-giersch <oliver.giersch@googlemail.com>2018-10-15 13:22:39 +0200
committerGitHub <noreply@github.com>2018-10-15 13:22:39 +0200
commit9d7a83862b77e36aa165bf843a03f85adcd271bf (patch)
tree9cf5e9b529dd362a52dc96bacad0d17d38bfc7a4 /src/libstd/thread
parent986549e9f565091ec4bb70cf456029a572da8046 (diff)
downloadrust-9d7a83862b77e36aa165bf843a03f85adcd271bf.tar.gz
rust-9d7a83862b77e36aa165bf843a03f85adcd271bf.zip
fixes misplaced semicolon
Diffstat (limited to 'src/libstd/thread')
-rw-r--r--src/libstd/thread/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index 73251d40599..afc659ccf3a 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -437,8 +437,8 @@ impl Builder {
     /// let handler = unsafe {
     ///     builder.spawn_unchecked(move || {
     ///         println!("x = {}", *thread_x);
-    ///     }).unwrap();
-    /// }
+    ///     }).unwrap()
+    /// };
     ///
     /// // caller has to ensure `join()` is called, otherwise
     /// // it is possible to access freed memory if `x` gets