1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-31 10:22:09 +01:00

fix doc test

This commit is contained in:
Rob Ede 2021-10-28 20:57:01 +01:00
parent 448626d543
commit 336e98e950
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -18,8 +18,8 @@ use crate::{Server, ServerBuilder};
/// ///
/// #[actix_rt::main] /// #[actix_rt::main]
/// async fn main() { /// async fn main() {
/// let srv = TestServer::with(|| fn_service( /// let srv = TestServer::with(fn_service(|sock|
/// |sock| async move { /// async move {
/// println!("New connection: {:?}", sock); /// println!("New connection: {:?}", sock);
/// Ok::<_, ()>(()) /// Ok::<_, ()>(())
/// } /// }