From 2e0cd292d2adf69427182374bec7c48a50545aac Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Wed, 13 Jun 2018 09:02:46 -0700 Subject: [PATCH] Fix some broken doc links (#413) --- src/clock.rs | 2 +- tokio-reactor/src/poll_evented.rs | 4 ++++ tokio-timer/src/clock/clock.rs | 2 +- tokio-timer/src/clock/mod.rs | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/clock.rs b/src/clock.rs index 313416690..7ddbbf37f 100644 --- a/src/clock.rs +++ b/src/clock.rs @@ -6,7 +6,7 @@ //! tests or performing caching operations to reduce the number of syscalls. //! //! Note that, because the source of time is configurable, it is possible to -//! observe non-monotonic behavior when calling [`now`] from different +//! observe non-monotonic behavior when calling [`now`][n] from different //! executors. //! //! [n]: fn.now.html diff --git a/tokio-reactor/src/poll_evented.rs b/tokio-reactor/src/poll_evented.rs index 23b250bf6..350d4c927 100644 --- a/tokio-reactor/src/poll_evented.rs +++ b/tokio-reactor/src/poll_evented.rs @@ -84,6 +84,10 @@ use std::sync::atomic::Ordering::Relaxed; /// [`mio::Evented`]: https://docs.rs/mio/0.6/mio/trait.Evented.html /// [`Registration`]: struct.Registration.html /// [`TcpListener`]: ../net/struct.TcpListener.html +/// [`clear_read_ready`]: #method.clear_read_ready +/// [`clear_write_ready`]: #method.clear_write_ready +/// [`poll_read_ready`]: #method.poll_read_ready +/// [`poll_write_ready`]: #method.poll_write_ready pub struct PollEvented { io: Option, inner: Inner, diff --git a/tokio-timer/src/clock/clock.rs b/tokio-timer/src/clock/clock.rs index 76330c75f..2236bc63f 100644 --- a/tokio-timer/src/clock/clock.rs +++ b/tokio-timer/src/clock/clock.rs @@ -26,7 +26,7 @@ thread_local!(static CLOCK: Cell> = Cell::new(None)); /// execution context. By default, this is `Instant::now()`. /// /// Note that, because the source of time is configurable, it is possible to -/// observe non-monotonic behavior when calling [`now`] from different +/// observe non-monotonic behavior when calling `now` from different /// executors. /// /// See [module](index.html) level documentation for more details. diff --git a/tokio-timer/src/clock/mod.rs b/tokio-timer/src/clock/mod.rs index 09c577949..527a6818c 100644 --- a/tokio-timer/src/clock/mod.rs +++ b/tokio-timer/src/clock/mod.rs @@ -7,7 +7,7 @@ //! The [`now`][n] function returns the current `Instant`. By default, it delegates //! to [`Instant::now`][std]. //! -//! The source of time used by [`now`] can be configured by implementing the +//! The source of time used by [`now`][n] can be configured by implementing the //! [`Now`] trait and passing an instance to [`with_default`]. //! //! [n]: fn.now.html