Skip to content

Commit

Permalink
feedback from review
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshua Wuyts <[email protected]>
  • Loading branch information
yoshuawuyts committed Nov 21, 2019
1 parent 79962e2 commit cffacf7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ syntax.

## Examples

All examples require the [`"attributes"` feature] to be enabled. This feature
is not enabled by default because it significantly impacts compile times. See
[`task::block_on`] for an alternative way to start executing tasks.

```rust
async fn say_hello() {
println!("Hello, world!");
Expand All @@ -90,6 +94,8 @@ More examples, including networking and file access, can be found in our

[`examples`]: https://github.com/async-rs/async-std/tree/master/examples
[documentation]: https://docs.rs/async-std#examples
[`task::block_on`]: task/fn.block_on.html
[`"attributes"` feature]: https://docs.rs/async-std/#features

## Philosophy

Expand Down
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@
//! ```
//! #[async_std::main]
//! async fn main() {
//! let a = || async move { 1u8 };
//! let b = || async move { 2u8 };
//! let a = async { 1u8 };
//! let b = async { 2u8 };
//! assert_eq!(a.join(b).await, (1u8, 2u8))
//! }
//! ```
Expand Down

0 comments on commit cffacf7

Please sign in to comment.