auto merge of #17743 : steveklabnik/rust/receiver_fix, r=alexcrichton

This commit is contained in:
bors 2014-10-03 22:32:02 +00:00
commit c348550f4f

View File

@ -5074,7 +5074,7 @@ The `channel()` function returns two endpoints: a `Receiver<T>` and a
`Sender<T>`. You can use the `.send()` method on the `Sender<T>` end, and
receive the message on the `Receiver<T>` side with the `recv()` method. This
method blocks until it gets a message. There's a similar method, `.try_recv()`,
which returns an `Option<T>` and does not block.
which returns an `Result<T, TryRecvError>` and does not block.
If you want to send messages to the task as well, create two channels!