about summary refs log tree commit diff
path: root/src/libstd/thread
diff options
context:
space:
mode:
authoroliver-giersch <oliver.giersch@googlemail.com>2018-10-15 13:47:27 +0200
committerGitHub <noreply@github.com>2018-10-15 13:47:27 +0200
commitee5703cbbc6579fde6c717a6b27d58588294d6e1 (patch)
treeab9e8e363ea69c86fad827a5f6a88ee5691071a3 /src/libstd/thread
parent9d7a83862b77e36aa165bf843a03f85adcd271bf (diff)
downloadrust-ee5703cbbc6579fde6c717a6b27d58588294d6e1.tar.gz
rust-ee5703cbbc6579fde6c717a6b27d58588294d6e1.zip
adds missing method call parentheses
Diffstat (limited to 'src/libstd/thread')
-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