mirror of
https://github.com/fafhrd91/actix-net
synced 2025-01-31 07:02:08 +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]
|
/// #[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::<_, ()>(())
|
||||||
/// }
|
/// }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user