mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-31 08:12:07 +01:00
fix doc test
This commit is contained in:
parent
448626d543
commit
336e98e950
@ -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::<_, ()>(())
|
||||
/// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user