diff --git a/README.md b/README.md index 6d4ce05..afef0c3 100644 --- a/README.md +++ b/README.md @@ -61,8 +61,7 @@ fn main() { // This is our socket address... let addr = ([127, 0, 0, 1], 13900).into(); - // A `Service` is needed for every connection, so this - // creates one from our `hello_world` function. + // A `Service` is needed for every connection. let make_svc = make_service_fn(|socket: &AddrStream| { let remote_addr = socket.remote_addr(); service_fn(move |req: Request| { // returns BoxFut diff --git a/src/lib.rs b/src/lib.rs index e876b0f..2d34938 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -54,8 +54,7 @@ //! // This is our socket address... //! let addr = ([127, 0, 0, 1], 13900).into(); //! -//! // A `Service` is needed for every connection, so this -//! // creates one from our `hello_world` function. +//! // A `Service` is needed for every connection. //! let make_svc = make_service_fn(|socket: &AddrStream| { //! let remote_addr = socket.remote_addr(); //! service_fn(move |req: Request| { // returns BoxFut