From 336e98e95007b1ea3d4007235bdf8334afdd3e14 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Thu, 28 Oct 2021 20:57:01 +0100 Subject: [PATCH] fix doc test --- actix-server/src/test_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actix-server/src/test_server.rs b/actix-server/src/test_server.rs index 77ddad3e..1d6f0fdc 100644 --- a/actix-server/src/test_server.rs +++ b/actix-server/src/test_server.rs @@ -18,8 +18,8 @@ use crate::{Server, ServerBuilder}; /// /// #[actix_rt::main] /// async fn main() { -/// let srv = TestServer::with(|| fn_service( -/// |sock| async move { +/// let srv = TestServer::with(fn_service(|sock| +/// async move { /// println!("New connection: {:?}", sock); /// Ok::<_, ()>(()) /// }