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/time/delay_queue.rs | 14 +++++++------- tokio/src/time/timeout.rs | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'tokio/src/time') diff --git a/tokio/src/time/delay_queue.rs b/tokio/src/time/delay_queue.rs index d0b1f192..59f901a9 100644 --- a/tokio/src/time/delay_queue.rs +++ b/tokio/src/time/delay_queue.rs @@ -2,7 +2,7 @@ //! //! See [`DelayQueue`] for more details. //! -//! [`DelayQueue`]: struct.DelayQueue.html +//! [`DelayQueue`]: struct@DelayQueue use crate::time::wheel::{self, Wheel}; use crate::time::{delay_until, Delay, Duration, Error, Instant}; @@ -114,7 +114,7 @@ use std::task::{self, Poll}; /// /// [`insert`]: #method.insert /// [`insert_at`]: #method.insert_at -/// [`Key`]: struct.Key.html +/// [`Key`]: struct@Key /// [`Stream`]: https://docs.rs/futures/0.1/futures/stream/trait.Stream.html /// [`poll`]: #method.poll /// [`Stream::poll`]: #method.poll @@ -148,7 +148,7 @@ pub struct DelayQueue { /// /// Values are returned by [`DelayQueue::poll`]. /// -/// [`DelayQueue::poll`]: struct.DelayQueue.html#method.poll +/// [`DelayQueue::poll`]: method@DelayQueue::poll #[derive(Debug)] pub struct Expired { /// The data stored in the queue @@ -166,8 +166,8 @@ pub struct Expired { /// Instances of `Key` are returned by [`DelayQueue::insert`]. See [`DelayQueue`] /// documentation for more details. /// -/// [`DelayQueue`]: struct.DelayQueue.html -/// [`DelayQueue::insert`]: struct.DelayQueue.html#method.insert +/// [`DelayQueue`]: struct@DelayQueue +/// [`DelayQueue::insert`]: method@DelayQueue::insert #[derive(Debug, Clone)] pub struct Key { index: usize, @@ -298,7 +298,7 @@ impl DelayQueue { /// [`poll`]: #method.poll /// [`remove`]: #method.remove /// [`reset`]: #method.reset - /// [`Key`]: struct.Key.html + /// [`Key`]: struct@Key /// [type]: # pub fn insert_at(&mut self, value: T, when: Instant) -> Key { assert!(self.slab.len() < MAX_ENTRIES, "max entries exceeded"); @@ -406,7 +406,7 @@ impl DelayQueue { /// [`poll`]: #method.poll /// [`remove`]: #method.remove /// [`reset`]: #method.reset - /// [`Key`]: struct.Key.html + /// [`Key`]: struct@Key /// [type]: # pub fn insert(&mut self, value: T, timeout: Duration) -> Key { self.insert_at(value, Instant::now() + timeout) diff --git a/tokio/src/time/timeout.rs b/tokio/src/time/timeout.rs index 7a372544..401856a8 100644 --- a/tokio/src/time/timeout.rs +++ b/tokio/src/time/timeout.rs @@ -2,7 +2,7 @@ //! //! See [`Timeout`] documentation for more details. //! -//! [`Timeout`]: struct.Timeout.html +//! [`Timeout`]: struct@Timeout use crate::time::{delay_until, Delay, Duration, Instant}; -- cgit v1.2.3