mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-02-06 02:53:28 +02:00
Remove outdated note about showing type of future (#2442)
Modern Rust just says “note: calling an async function returns a future” and hides the `Future` type.
This commit is contained in:
parent
0afca2f69b
commit
5d292377a0
@ -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.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user