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:
Adam Chalmers 2023-04-20 09:12:43 -05:00 committed by GitHub
parent 5cef6eba7b
commit 623483c81f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,8 +295,7 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
/// ```
///
/// The `worker_threads` option configures the number of worker threads, and
/// defaults to the number of cpus on the system. This is the default
/// flavor.
/// defaults to the number of cpus on the system.
///
/// Note: The multi-threaded runtime requires the `rt-multi-thread` feature
/// flag.