about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
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