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::<_, ()>(()) /// }