mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
docs: fix runtime creation doc in tokio::runtime (#2073)
With the rt-threaded feature flag we create a threaded scheduler by default. The documentation had a copy-and-paste error from the section about the basic scheduler.
This commit is contained in:
committed by
Carl Lerche
parent
a7a79f28a8
commit
b34a849b79
@@ -148,7 +148,7 @@
|
||||
//! ```
|
||||
//!
|
||||
//! If the `rt-threaded` feature flag is enabled, [`Runtime::new`] will return a
|
||||
//! basic scheduler runtime by default.
|
||||
//! threaded scheduler runtime by default.
|
||||
//!
|
||||
//! Most applications should use the threaded scheduler, except in some niche
|
||||
//! use-cases, such as when running only a single thread is required.
|
||||
|
||||
Reference in New Issue
Block a user