async-await: misc fixes and typos (#585)

This commit is contained in:
Carl Lerche
2018-08-27 15:16:32 -07:00
committed by GitHub
parent b479ce78d3
commit d16032cf06
5 changed files with 10 additions and 18 deletions
@@ -27,7 +27,7 @@ impl<T> Compat<T> {
}
}
/// Convert a valuee into one that can be used with `await!`.
/// Convert a value into one that can be used with `await!`.
pub trait IntoAwaitable {
type Awaitable;
+2 -2
View File
@@ -16,8 +16,8 @@ use tokio_io::{AsyncRead, AsyncWrite};
/// An extension trait which adds utility methods to `AsyncRead` types.
pub trait AsyncReadExt: AsyncRead {
/// Tries to read some bytes directly into the given `buf` in asynchronous
/// manner, returning a future.
/// Tries to read some bytes directly into the given `buf` in an
/// asynchronous manner, returning a future.
///
/// The returned future will resolve to the number of bytes read once the read
/// operation is completed.
+2 -2
View File
@@ -11,7 +11,7 @@ extern crate futures_core;
extern crate futures_util;
// Re-export all of Tokio
pub use tokio_main::{
pub use tokio::{
// Modules
clock,
codec,
@@ -53,7 +53,7 @@ pub mod prelude {
//!
//! The prelude may grow over time as additional items see ubiquitous use.
pub use tokio_main::prelude::*;
pub use tokio::prelude::*;
#[doc(inline)]
pub use crate::async_await::{