Clarify what tx/rx mean in concurrency docs

This commit is contained in:
Manish Goregaokar 2016-02-13 00:57:52 +05:30
parent 77f9231818
commit 9ec112749b

View File

@ -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 {