Skip to content

Commit

Permalink
Add doc link from Runtime to #[tokio::main].
Browse files Browse the repository at this point in the history
  • Loading branch information
kpreid committed Feb 25, 2024
1 parent a209604 commit 4a21761
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tokio/src/runtime/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cfg_rt_multi_thread! {
/// blocking pool, necessary for running asynchronous tasks.
///
/// Instances of `Runtime` can be created using [`new`], or [`Builder`].
/// However, most users will use the `#[tokio::main]` annotation on their
/// However, most users will use the [`#[tokio::main]`] annotation on their
/// entry point instead.
///
/// See [module level][mod] documentation for more details.
Expand Down Expand Up @@ -86,6 +86,7 @@ cfg_rt_multi_thread! {
/// [`new`]: method@Self::new
/// [`Builder`]: struct@Builder
/// [`Handle`]: struct@Handle
/// [`#[tokio::main]`]: macro@crate::main
/// [`tokio::spawn`]: crate::spawn
/// [`Arc::try_unwrap`]: std::sync::Arc::try_unwrap
/// [Arc]: std::sync::Arc
Expand Down

0 comments on commit 4a21761

Please sign in to comment.