mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
docs: fix typo in #[tokio::test] docs (#5636)
Both current- and multi-thread runtime claimed to be the default, but only current thread actually is.
This commit is contained in:
@@ -295,8 +295,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
|
|||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// The `worker_threads` option configures the number of worker threads, and
|
/// The `worker_threads` option configures the number of worker threads, and
|
||||||
/// defaults to the number of cpus on the system. This is the default
|
/// defaults to the number of cpus on the system.
|
||||||
/// flavor.
|
|
||||||
///
|
///
|
||||||
/// Note: The multi-threaded runtime requires the `rt-multi-thread` feature
|
/// Note: The multi-threaded runtime requires the `rt-multi-thread` feature
|
||||||
/// flag.
|
/// flag.
|
||||||
|
|||||||
Reference in New Issue
Block a user