From 9ec112749b7faeae7fcbdc529ab0de97c7dd3299 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sat, 13 Feb 2016 00:57:52 +0530 Subject: [PATCH] Clarify what tx/rx mean in concurrency docs --- src/doc/book/concurrency.md | 2 ++ 1 file changed, 2 insertions(+) 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 {