Update system.rs

This commit is contained in:
Rob Ede 2023-08-26 15:27:50 +01:00 committed by GitHub
parent a6a7284de9
commit e985a9af85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 8 deletions

View File

@ -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`]