diff --git a/src/server/request.rs b/src/server/request.rs index b8e0fd2958..732aaa33c7 100644 --- a/src/server/request.rs +++ b/src/server/request.rs @@ -81,10 +81,11 @@ impl<'a, 'b: 'a> Request<'a, 'b> { /// extern crate openssl; /// # #[cfg(feature = "openssl")] /// use openssl::ssl::SslStream; + /// use hyper::net::HttpStream; /// # fn main() {} /// # #[cfg(feature = "openssl")] /// # fn doc_ssl(req: hyper::server::Request) { - /// let maybe_ssl = req.ssl::(); + /// let maybe_ssl = req.ssl::>(); /// # } /// ``` #[inline]