File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -425,15 +425,15 @@ impl Builder {
425
425
/// let (tx, rx) = channel();
426
426
///
427
427
/// let sender = thread::spawn(move || {
428
- /// tx.send("Hello, thread".to_owned());
428
+ /// let _ = tx.send("Hello, thread".to_owned());
429
429
/// });
430
430
///
431
431
/// let receiver = thread::spawn(move || {
432
432
/// println!("{}", rx.recv().unwrap());
433
433
/// });
434
434
///
435
- /// sender.join();
436
- /// receiver.join();
435
+ /// let _ = sender.join();
436
+ /// let _ = receiver.join();
437
437
/// ```
438
438
///
439
439
/// A thread can also return a value through its [`JoinHandle`], you can use
@@ -449,7 +449,7 @@ impl Builder {
449
449
/// });
450
450
///
451
451
/// let result = computation.join().unwrap();
452
- /// println!("{}", v );
452
+ /// println!("{}", result );
453
453
/// ```
454
454
///
455
455
/// [`channels`]: ../../std/sync/mpsc/index.html
You can’t perform that action at this time.
0 commit comments