auto merge of #16761 : mrmonday/rust/patch-1, r=alexcrichton
This question comes up relatively frequently on IRC - "what do tx and rx mean?". This change adds a short explanation.
This commit is contained in:
commit
18d6eefadb
@ -86,6 +86,8 @@
|
|||||||
//!
|
//!
|
||||||
//! ```
|
//! ```
|
||||||
//! // Create a shared channel which can be sent along from many tasks
|
//! // Create a shared channel which can be sent along from many tasks
|
||||||
|
//! // where tx is the sending half (tx for transmission), and rx is the receiving
|
||||||
|
//! // half (rx for receiving).
|
||||||
//! let (tx, rx) = channel();
|
//! let (tx, rx) = channel();
|
||||||
//! for i in range(0i, 10i) {
|
//! for i in range(0i, 10i) {
|
||||||
//! let tx = tx.clone();
|
//! let tx = tx.clone();
|
||||||
@ -473,6 +475,8 @@ impl<T> UnsafeFlavor<T> for Receiver<T> {
|
|||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
/// // tx is is the sending half (tx for transmission), and rx is the receiving
|
||||||
|
/// // half (rx for receiving).
|
||||||
/// let (tx, rx) = channel();
|
/// let (tx, rx) = channel();
|
||||||
///
|
///
|
||||||
/// // Spawn off an expensive computation
|
/// // Spawn off an expensive computation
|
||||||
|
Loading…
Reference in New Issue
Block a user