summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/oneshot.rs
diff options
context:
space:
mode:
authorGokul <gokulchandra@users.noreply.github.com>2020-06-26 03:43:22 +1000
committerGitHub <noreply@github.com>2020-06-25 10:43:22 -0700
commitcf2c05317c348c67a7dbbd9a2d334c39a333980f (patch)
tree0b65a5093ac183f5dcf2de121d983c8184b60dcd /tokio/src/sync/oneshot.rs
parentf0b2b708a71a55927ca11ad571ca7316b114eda5 (diff)
sync: update `oneshot::Receiver::close` doc link (#2630)
Co-authored-by: Alice Ryhl <alice@ryhl.io>
Diffstat (limited to 'tokio/src/sync/oneshot.rs')
-rw-r--r--tokio/src/sync/oneshot.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/tokio/src/sync/oneshot.rs b/tokio/src/sync/oneshot.rs
index 54cd5b76..17767e7f 100644
--- a/tokio/src/sync/oneshot.rs
+++ b/tokio/src/sync/oneshot.rs
@@ -366,7 +366,7 @@ impl<T> Receiver<T> {
/// Prevents the associated [`Sender`] handle from sending a value.
///
/// Any `send` operation which happens after calling `close` is guaranteed
- /// to fail. After calling `close`, `Receiver::poll`] should be called to
+ /// to fail. After calling `close`, [`try_recv`] should be called to
/// receive a value if one was sent **before** the call to `close`
/// completed.
///
@@ -374,6 +374,7 @@ impl<T> Receiver<T> {
/// value will not be sent into the channel and never received.
///
/// [`Sender`]: Sender
+ /// [`try_recv`]: Receiver::try_recv
///
/// # Examples
///