diff options
author | Igor Aleksanov <popzxc@yandex.ru> | 2020-09-05 21:22:47 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-05 20:22:47 +0200 |
commit | 38cab933301b60a7fa730bb999bc08cdb5529476 (patch) | |
tree | 7e1bd785ca4a0c9ec565717fa4d4d75180523504 /tokio/src/runtime | |
parent | 171cb57fa1baffe369e44e1bf28382dcb54b2e1c (diff) |
runtime: improve runtime vs #[tokio::main] doc (#2820)
Diffstat (limited to 'tokio/src/runtime')
-rw-r--r-- | tokio/src/runtime/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 9d26446b..bec0ecd5 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -10,14 +10,14 @@ //! * A **timer** for scheduling work to run after a set period of time. //! //! Tokio's [`Runtime`] bundles all of these services as a single type, allowing -//! them to be started, shut down, and configured together. However, most -//! applications won't need to use [`Runtime`] directly. Instead, they can +//! them to be started, shut down, and configured together. However, often +//! it is not required to configure a [`Runtime`] manually, and user may just //! use the [`tokio::main`] attribute macro, which creates a [`Runtime`] under //! the hood. //! //! # Usage //! -//! Most applications will use the [`tokio::main`] attribute macro. +//! When no fine tuning is required, the [`tokio::main`] attribute macro can be used. //! //! ```no_run //! use tokio::net::TcpListener; |