mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
runtime: fix typo in shutdown_background
docs (#4829)
This commit is contained in:
parent
6d3f92dddc
commit
de686b5355
@ -576,7 +576,7 @@ cfg_rt! {
|
||||
/// may result in a resource leak (in that any blocking tasks are still running until they
|
||||
/// return.
|
||||
///
|
||||
/// This function is equivalent to calling `shutdown_timeout(Duration::of_nanos(0))`.
|
||||
/// This function is equivalent to calling `shutdown_timeout(Duration::from_nanos(0))`.
|
||||
///
|
||||
/// ```
|
||||
/// use tokio::runtime::Runtime;
|
||||
|
Loading…
x
Reference in New Issue
Block a user