From 48ed13e6aeaf58cbe7c377dcfc532132004195e4 Mon Sep 17 00:00:00 2001 From: Felipe Noronha Date: Sat, 16 Feb 2019 16:10:36 -0200 Subject: [PATCH] edit comment --- README.md | 3 +-- src/lib.rs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) 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