summaryrefslogtreecommitdiffstats
path: root/tokio/src/sync/watch.rs
diff options
context:
space:
mode:
authorxliiv <tymoteusz.jankowski@gmail.com>2020-04-12 19:25:55 +0200
committerGitHub <noreply@github.com>2020-04-12 10:25:55 -0700
commitf39c15334e74b07a44efaa0f7201262e17e4f062 (patch)
treec13b2949b0a82d4443d83b724d7f99bae13a035e /tokio/src/sync/watch.rs
parent060d22bd10ac66d91b70522138816c9bd05d5ead (diff)
docs: replace some html links with rustdoc paths (#2381)
Included changes - all simple references like `<type>.<name>.html` for these types - enum - fn - struct - trait - type - simple references for methods, like struct.DelayQueue.html#method.poll Refs: #1473
Diffstat (limited to 'tokio/src/sync/watch.rs')
-rw-r--r--tokio/src/sync/watch.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/tokio/src/sync/watch.rs b/tokio/src/sync/watch.rs
index 402670f4..ba609a8c 100644
--- a/tokio/src/sync/watch.rs
+++ b/tokio/src/sync/watch.rs
@@ -62,9 +62,9 @@ use std::sync::{Arc, Mutex, RwLock, RwLockReadGuard, Weak};
use std::task::Poll::{Pending, Ready};
use std::task::{Context, Poll};
-/// Receives values from the associated [`Sender`](struct.Sender.html).
+/// Receives values from the associated [`Sender`](struct@Sender).
///
-/// Instances are created by the [`channel`](fn.channel.html) function.
+/// Instances are created by the [`channel`](fn@channel) function.
#[derive(Debug)]
pub struct Receiver<T> {
/// Pointer to the shared state
@@ -74,9 +74,9 @@ pub struct Receiver<T> {
inner: Watcher,
}
-/// Sends values to the associated [`Receiver`](struct.Receiver.html).
+/// Sends values to the associated [`Receiver`](struct@Receiver).
///
-/// Instances are created by the [`channel`](fn.channel.html) function.
+/// Instances are created by the [`channel`](fn@channel) function.
#[derive(Debug)]
pub struct Sender<T> {
shared: Weak<Shared<T>>,
@@ -172,8 +172,8 @@ const CLOSED: usize = 1;
/// # }
/// ```
///
-/// [`Sender`]: struct.Sender.html
-/// [`Receiver`]: struct.Receiver.html
+/// [`Sender`]: struct@Sender
+/// [`Receiver`]: struct@Receiver
pub fn channel<T: Clone>(init: T) -> (Sender<T>, Receiver<T>) {
const VERSION_0: usize = 0;
const VERSION_1: usize = 2;