diff options
| author | Felix Raimundo <felix.raimundo@tweag.io> | 2017-05-09 19:06:56 +0200 |
|---|---|---|
| committer | Felix Raimundo <felix.raimundo@tweag.io> | 2017-05-09 19:06:56 +0200 |
| commit | 202086e48ff3ca955a52137d71ca8713f39cd5ff (patch) | |
| tree | 96c86007004da33f3bc4b90ca38695867e590137 /src/libstd/thread/mod.rs | |
| parent | 656efcd3ab029491fd0bd01f3b596516884cabe1 (diff) | |
| download | rust-202086e48ff3ca955a52137d71ca8713f39cd5ff.tar.gz rust-202086e48ff3ca955a52137d71ca8713f39cd5ff.zip | |
Fix warnings in examples
Diffstat (limited to 'src/libstd/thread/mod.rs')
| -rw-r--r-- | src/libstd/thread/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index dd8892d6660..425cb0ada08 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -425,15 +425,15 @@ impl Builder { /// let (tx, rx) = channel(); /// /// let sender = thread::spawn(move || { -/// tx.send("Hello, thread".to_owned()); +/// let _ = tx.send("Hello, thread".to_owned()); /// }); /// /// let receiver = thread::spawn(move || { /// println!("{}", rx.recv().unwrap()); /// }); /// -/// sender.join(); -/// receiver.join(); +/// let _ = sender.join(); +/// let _ = receiver.join(); /// ``` /// /// A thread can also return a value through its [`JoinHandle`], you can use @@ -449,7 +449,7 @@ impl Builder { /// }); /// /// let result = computation.join().unwrap(); -/// println!("{}", v); +/// println!("{}", result); /// ``` /// /// [`channels`]: ../../std/sync/mpsc/index.html |
