about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libstd/thread/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs
index afc659ccf3a..770044439a5 100644
--- a/src/libstd/thread/mod.rs
+++ b/src/libstd/thread/mod.rs
@@ -443,7 +443,7 @@ impl Builder {
     /// // caller has to ensure `join()` is called, otherwise
     /// // it is possible to access freed memory if `x` gets
     /// // dropped before the thread closure is executed!
-    /// handler.join.unwrap();
+    /// handler.join().unwrap();
     /// ```
     ///
     /// [`spawn`]: ../../std/thread/fn.spawn.html