diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-10-03 11:58:52 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2014-10-03 11:58:52 -0400 |
| commit | 71f752bbc4eb2a280cd6f6611ba46075a7fdffd1 (patch) | |
| tree | 0015150fbc773c250359ecb617fbac5d7e25a97e /src | |
| parent | 9a2286d3a13c4a97340c99c86c718654f6cb2ed6 (diff) | |
| download | rust-71f752bbc4eb2a280cd6f6611ba46075a7fdffd1.tar.gz rust-71f752bbc4eb2a280cd6f6611ba46075a7fdffd1.zip | |
Update signature of try_recv()
Diffstat (limited to 'src')
| -rw-r--r-- | src/doc/guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index 7805b3d5681..0dc8859c328 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -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! |
