about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-02-13 00:57:52 +0530
committerManish Goregaokar <manishsmail@gmail.com>2016-02-13 00:57:52 +0530
commit9ec112749b7faeae7fcbdc529ab0de97c7dd3299 (patch)
tree7481bf35562ed3ee23d82cf18c1910334ee20bcf
parent77f9231818514c4ded23e6aa1ae431a8ba4668bf (diff)
downloadrust-9ec112749b7faeae7fcbdc529ab0de97c7dd3299.tar.gz
rust-9ec112749b7faeae7fcbdc529ab0de97c7dd3299.zip
Clarify what tx/rx mean in concurrency docs
-rw-r--r--src/doc/book/concurrency.md2
1 files changed, 2 insertions, 0 deletions
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 {