Make handshake an async fn; other cleanup
This commit is contained in:
committed by
Sean McArthur
parent
ad7ffa795f
commit
b039ef25bc
@@ -267,7 +267,7 @@ impl<B: IntoBuf> SendStream<B> {
|
||||
/// is sent. For example:
|
||||
///
|
||||
/// ```rust
|
||||
/// #![feature(async_await)]
|
||||
/// # #![feature(async_await)]
|
||||
/// # use h2::*;
|
||||
/// # async fn doc(mut send_stream: SendStream<&'static [u8]>) {
|
||||
/// send_stream.reserve_capacity(100);
|
||||
@@ -557,7 +557,7 @@ impl PingPong {
|
||||
/// # Example
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(async_await)]
|
||||
/// # #![feature(async_await)]
|
||||
/// # async fn doc(mut ping_pong: h2::PingPong) {
|
||||
/// // let mut ping_pong = ...
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user