about summary refs log tree commit diff
path: root/src/libstd/macros.rs
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2015-01-05 21:59:45 -0800
committerAaron Turon <aturon@mozilla.com>2015-01-06 14:57:52 -0800
commitcaca9b2e7109a148d100a3c6851241d3815da3db (patch)
treeb49ae965c7392d0c527aba9c427d4e9e224f8750 /src/libstd/macros.rs
parentf67b81e8d4dc198ad10ad50a7624e43cc1e25802 (diff)
downloadrust-caca9b2e7109a148d100a3c6851241d3815da3db.tar.gz
rust-caca9b2e7109a148d100a3c6851241d3815da3db.zip
Fallout from stabilization
Diffstat (limited to 'src/libstd/macros.rs')
-rw-r--r--src/libstd/macros.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs
index d96441e09a8..092430bf082 100644
--- a/src/libstd/macros.rs
+++ b/src/libstd/macros.rs
@@ -303,8 +303,8 @@ macro_rules! try {
 /// # fn long_running_task() {}
 /// # fn calculate_the_answer() -> int { 42i }
 ///
-/// Thread::spawn(move|| { long_running_task(); tx1.send(()) }).detach();
-/// Thread::spawn(move|| { tx2.send(calculate_the_answer()) }).detach();
+/// Thread::spawn(move|| { long_running_task(); tx1.send(()).unwrap(); });
+/// Thread::spawn(move|| { tx2.send(calculate_the_answer()).unwrap(); });
 ///
 /// select! (
 ///     _ = rx1.recv() => println!("the long running task finished first"),