Skip to content

Commit

Permalink
docs(server): fix request.ssl() example to use SslStream<HttpStream>
Browse files Browse the repository at this point in the history
Closes #633
  • Loading branch information
seanmonstar committed Aug 24, 2015
1 parent 295e8e4 commit 44a4010
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/server/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<SslStream>();
/// let maybe_ssl = req.ssl::<SslStream<HttpStream>>();
/// # }
/// ```
#[inline]
Expand Down

0 comments on commit 44a4010

Please sign in to comment.