From 733d432b807b8d0c638e2bba25379c2232d4fafd Mon Sep 17 00:00:00 2001 From: Marek Kotewicz Date: Thu, 10 Jan 2019 23:49:13 +0100 Subject: [PATCH] docs: fixed links to tokio_timer::clock::Now (#842) * docs: fixed links to tokio_timer::clock::Now in tokio-timer/src/timer/mod.rs * docs: fixed links to std::time::Instant in tokio-timer/src/timer/mod.rs --- tokio-timer/src/timer/mod.rs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tokio-timer/src/timer/mod.rs b/tokio-timer/src/timer/mod.rs index 3be5ba3d1..4b70d5c02 100644 --- a/tokio-timer/src/timer/mod.rs +++ b/tokio-timer/src/timer/mod.rs @@ -10,23 +10,25 @@ //! `Clone`, `Send`, and `Sync`. This type is used to create instances of //! [`Delay`]. //! -//! The [`Now`] trait describes how to get an `Instance` representing the +//! The [`Now`] trait describes how to get an [`Instant`] representing the //! current moment in time. [`SystemNow`] is the default implementation, where -//! [`Now::now`] is implemented by calling `Instant::now`. +//! [`Now::now`] is implemented by calling [`Instant::now`]. //! //! [`Timer`] is generic over [`Now`]. This allows the source of time to be //! customized. This ability is especially useful in tests and any environment //! where determinism is necessary. //! -//! Note, when using the Tokio runtime, the `Timer` does not need to be manually -//! setup as the runtime comes pre-configured with a `Timer` instance. +//! Note, when using the Tokio runtime, the [`Timer`] does not need to be manually +//! setup as the runtime comes pre-configured with a [`Timer`] instance. //! //! [`Timer`]: struct.Timer.html //! [`Handle`]: struct.Handle.html //! [`Delay`]: ../struct.Delay.html -//! [`Now`]: trait.Now.html -//! [`Now::now`]: trait.Now.html#method.now +//! [`Now`]: ../clock/trait.Now.html +//! [`Now::now`]: ../clock/trait.Now.html#method.now //! [`SystemNow`]: struct.SystemNow.html +//! [`Instant`]: https://doc.rust-lang.org/std/time/struct.Instant.html +//! [`Instant::now`]: https://doc.rust-lang.org/std/time/struct.Instant.html#method.now // This allows the usage of the old `Now` trait. #![allow(deprecated)]