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