Skip to content

Commit d16032c

Browse files
authored
async-await: misc fixes and typos (#585)
1 parent b479ce7 commit d16032c

File tree

5 files changed

+10
-18
lines changed

5 files changed

+10
-18
lines changed

tokio-async-await/Cargo.toml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ edition = "2018"
66

77
# When releasing to crates.io:
88
# - Update html_root_url.
9-
version = "0.1.0"
9+
version = "0.1.1"
1010
authors = ["Carl Lerche <[email protected]>"]
1111
license = "MIT"
1212
repository = "https://github.com/tokio-rs/tokio"
1313
homepage = "https://tokio.rs"
14-
documentation = "https://docs.rs/tokio-async-await/0.1.0"
14+
documentation = "https://docs.rs/tokio-async-await/0.1.1"
1515
description = """
1616
Experimental async/await support for Tokio
1717
"""
@@ -24,7 +24,7 @@ name = "tokio"
2424

2525
[dependencies]
2626
futures = "0.1.23"
27-
tokio_main = { package = "tokio", version = "0.1.7", path = ".." }
27+
tokio = { version = "0.1.7", path = ".." }
2828
tokio-io = { version = "0.1.7", path = "../tokio-io" }
2929
tokio-channel = { version = "0.1.0", path = "../tokio-channel", features = ["async-await-preview"] }
3030
tokio-reactor = { version = "0.1.5", path = "../tokio-reactor", features = ["async-await-preview"] }
@@ -35,11 +35,3 @@ futures-util-preview = { version = "0.3.0-alpha.2" }
3535
bytes = "0.4.9"
3636
tokio-codec = { version = "0.1.0", path = "../tokio-codec" }
3737
hyper = "0.12.8"
38-
39-
[patch.crates-io]
40-
tokio = { path = "../" }
41-
tokio-executor = { path = "../tokio-executor" }
42-
tokio-io = { path = "../tokio-io" }
43-
tokio-reactor = { path = "../tokio-reactor" }
44-
tokio-tcp = { path = "../tokio-tcp" }
45-
tokio-timer = { path = "../tokio-timer" }

tokio-async-await/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This crate provides a preview of Tokio with async / await support. It is a shim
44
layer on top of `tokio`.
55

66
**This crate requires Rust nightly and does not provide API stability
7-
guarantees. You are living on the here.**
7+
guarantees. You are living on the edge here.**
88

99
## Usage
1010

11-
To use this crate, you need need to start with a Rust 2018 edition crate.
11+
To use this crate, you need to start with a Rust 2018 edition crate.
1212

1313
Add this to your `Cargo.toml`:
1414

tokio-async-await/src/async_await/compat/backward.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ impl<T> Compat<T> {
2727
}
2828
}
2929

30-
/// Convert a valuee into one that can be used with `await!`.
30+
/// Convert a value into one that can be used with `await!`.
3131
pub trait IntoAwaitable {
3232
type Awaitable;
3333

tokio-async-await/src/async_await/io/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ use tokio_io::{AsyncRead, AsyncWrite};
1616

1717
/// An extension trait which adds utility methods to `AsyncRead` types.
1818
pub trait AsyncReadExt: AsyncRead {
19-
/// Tries to read some bytes directly into the given `buf` in asynchronous
20-
/// manner, returning a future.
19+
/// Tries to read some bytes directly into the given `buf` in an
20+
/// asynchronous manner, returning a future.
2121
///
2222
/// The returned future will resolve to the number of bytes read once the read
2323
/// operation is completed.

tokio-async-await/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ extern crate futures_core;
1111
extern crate futures_util;
1212

1313
// Re-export all of Tokio
14-
pub use tokio_main::{
14+
pub use tokio::{
1515
// Modules
1616
clock,
1717
codec,
@@ -53,7 +53,7 @@ pub mod prelude {
5353
//!
5454
//! The prelude may grow over time as additional items see ubiquitous use.
5555
56-
pub use tokio_main::prelude::*;
56+
pub use tokio::prelude::*;
5757

5858
#[doc(inline)]
5959
pub use crate::async_await::{

0 commit comments

Comments
 (0)