From ee5703cbbc6579fde6c717a6b27d58588294d6e1 Mon Sep 17 00:00:00 2001 From: oliver-giersch Date: Mon, 15 Oct 2018 13:47:27 +0200 Subject: [PATCH] adds missing method call parentheses --- src/libstd/thread/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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