From cf2c05317c348c67a7dbbd9a2d334c39a333980f Mon Sep 17 00:00:00 2001 From: Gokul Date: Fri, 26 Jun 2020 03:43:22 +1000 Subject: sync: update `oneshot::Receiver::close` doc link (#2630) Co-authored-by: Alice Ryhl --- tokio/src/sync/oneshot.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tokio/src/sync/oneshot.rs') 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 Receiver { /// 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 Receiver { /// value will not be sent into the channel and never received. /// /// [`Sender`]: Sender + /// [`try_recv`]: Receiver::try_recv /// /// # Examples /// -- cgit v1.2.3