Skip to content

Commit

Permalink
Remove outdated note about showing type of future (#2442)
Browse files Browse the repository at this point in the history
Modern Rust just says “note: calling an async function returns a
future” and hides the `Future` type.
  • Loading branch information
mgeisler authored Oct 18, 2024
1 parent 0afca2f commit 5d29237
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/concurrency/async/async-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ Key points:
- Note that this is a simplified example to show the syntax. There is no long
running operation or any real concurrency in it!

- What is the return type of an async call?
- Use `let future: () = async_main(10);` in `main` to see the type.

- The "async" keyword is syntactic sugar. The compiler replaces the return type
with a future.

Expand Down

0 comments on commit 5d29237

Please sign in to comment.