From de686b53556928e96bd2aa12700ac805f9d1a732 Mon Sep 17 00:00:00 2001 From: Eric Zhang Date: Tue, 12 Jul 2022 16:51:28 -0400 Subject: [PATCH] runtime: fix typo in `shutdown_background` docs (#4829) --- tokio/src/runtime/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/runtime/mod.rs b/tokio/src/runtime/mod.rs index 46a63614e..cf2b927d2 100644 --- a/tokio/src/runtime/mod.rs +++ b/tokio/src/runtime/mod.rs @@ -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;