From e985a9af85dbc1dd2be426c2137e855bf0c5b392 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sat, 26 Aug 2023 15:27:50 +0100 Subject: [PATCH] Update system.rs --- actix-rt/src/system.rs | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/actix-rt/src/system.rs b/actix-rt/src/system.rs index 6f5fd1bd..8ff02c83 100644 --- a/actix-rt/src/system.rs +++ b/actix-rt/src/system.rs @@ -215,15 +215,10 @@ impl SystemRunner { /// # Example /// /// ``` - /// use actix_rt::SystemRunner; - /// use tokio::task; + /// let system_runner = actix_rt::System::new(); + /// let actix_runtime = system_runner.runtime(); /// - /// fn main() { - /// let system_runner = actix_rt::System::new(); - /// let actix_runtime = system_runner.runtime(); - /// - /// // Use the runtime to spawn an async task or perform other operations - /// } + /// // Use the runtime to spawn an async task or perform other operations /// ``` /// /// Read more in the documentation for [`actix_rt::Runtime`]