diff --git a/src/doc/book/concurrency.md b/src/doc/book/concurrency.md index 44569a04b98..752c0972102 100644 --- a/src/doc/book/concurrency.md +++ b/src/doc/book/concurrency.md @@ -286,6 +286,8 @@ use std::sync::mpsc; fn main() { let data = Arc::new(Mutex::new(0)); + // `tx` is the "transmitter" or "sender" + // `rx` is the "receiver" let (tx, rx) = mpsc::channel(); for _ in 0..10 {