diff --git a/src/helpers.rs b/src/helpers.rs index b849ba5b0..f49e04cda 100644 --- a/src/helpers.rs +++ b/src/helpers.rs @@ -166,8 +166,8 @@ fn test_date_len() { #[test] fn test_date() { let mut buf1 = BytesMut::new(); - extend(&mut buf1); + date(&mut buf1); let mut buf2 = BytesMut::new(); - extend(&mut buf2); + date(&mut buf2); assert_eq!(buf1, buf2); } diff --git a/src/server.rs b/src/server.rs index 95e3ed2e5..4fdd6bd70 100644 --- a/src/server.rs +++ b/src/server.rs @@ -82,7 +82,7 @@ impl ServerSettings { /// An HTTP Server /// -/// `T` - async stream, anything that implements `AsyncRead` + `AsyncWrite`. +/// `T` - async stream, anything that implements `AsyncRead` + `AsyncWrite`. /// /// `A` - peer address /// @@ -121,7 +121,7 @@ impl HttpServer U: IntoIterator + 'static, V: IntoHttpHandler, { - /// Create new http server with vec of http handlers + /// Create new http server with application factory pub fn new(factory: F) -> Self where F: Sync + Send + 'static + Fn() -> U, { @@ -401,7 +401,6 @@ impl Handler, io::Error> for HttpServer } } - /// Http workers /// /// Worker accepts Socket objects via unbounded channel and start requests processing.