runtime: fix typo in shutdown_background docs (#4829)

This commit is contained in:
Eric Zhang
2022-07-12 20:51:28 +00:00
committed by GitHub
parent 6d3f92dddc
commit de686b5355
+1 -1
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;