]> git.lizzy.rs Git - rust.git/commitdiff
fixes misplaced semicolon
authoroliver-giersch <oliver.giersch@googlemail.com>
Mon, 15 Oct 2018 11:22:39 +0000 (13:22 +0200)
committerGitHub <noreply@github.com>
Mon, 15 Oct 2018 11:22:39 +0000 (13:22 +0200)
src/libstd/thread/mod.rs

index 73251d40599e9aa2f0f886b5f2f1f190699ac8d6..afc659ccf3a801c39f9250e34ffda87f8ba75451 100644 (file)
@@ -437,8 +437,8 @@ pub fn spawn<F, T>(self, f: F) -> io::Result<JoinHandle<T>> where
     /// 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