From f39c15334e74b07a44efaa0f7201262e17e4f062 Mon Sep 17 00:00:00 2001 From: xliiv Date: Sun, 12 Apr 2020 19:25:55 +0200 Subject: docs: replace some html links with rustdoc paths (#2381) Included changes - all simple references like `..html` for these types - enum - fn - struct - trait - type - simple references for methods, like struct.DelayQueue.html#method.poll Refs: #1473 --- tokio/src/sync/watch.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tokio/src/sync/watch.rs') 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 { /// Pointer to the shared state @@ -74,9 +74,9 @@ pub struct Receiver { 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 { shared: Weak>, @@ -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(init: T) -> (Sender, Receiver) { const VERSION_0: usize = 0; const VERSION_1: usize = 2; -- cgit v1.2.3