diff options
Diffstat (limited to 'tokio/src/runtime')
-rw-r--r-- | tokio/src/runtime/handle.rs | 2 | ||||
-rw-r--r-- | tokio/src/runtime/mod.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/runtime/handle.rs b/tokio/src/runtime/handle.rs index dfcc5e97..d48b6242 100644 --- a/tokio/src/runtime/handle.rs +++ b/tokio/src/runtime/handle.rs @@ -28,7 +28,7 @@ pub(crate) struct Handle { impl Handle { /// Enter the runtime context. This allows you to construct types that must - /// have an executor available on creation such as [`Delay`] or [`TcpStream`]. + /// have an executor available on creation such as [`Sleep`] or [`TcpStream`]. /// It will also allow you to call methods such as [`tokio::spawn`]. pub(crate) fn enter<F, R>(&self, f: F) -> R where diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 22109f7d..8e70db85 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -450,10 +450,10 @@ impl Runtime { } /// Enter the runtime context. This allows you to construct types that must - /// have an executor available on creation such as [`Delay`] or [`TcpStream`]. + /// have an executor available on creation such as [`Sleep`] or [`TcpStream`]. /// It will also allow you to call methods such as [`tokio::spawn`]. /// - /// [`Delay`]: struct@crate::time::Delay + /// [`Sleep`]: struct@crate::time::Sleep /// [`TcpStream`]: struct@crate::net::TcpStream /// [`tokio::spawn`]: fn@crate::spawn /// |