runtime: fix typo in shutdown_background docs (#4829)

This commit is contained in:
Eric Zhang 2022-07-12 16:51:28 -04:00 committed by GitHub
parent 6d3f92dddc
commit de686b5355
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;