1
0
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:
Martin Geisler 2024-10-18 03:02:53 -04:00 committed by GitHub
parent 0afca2f69b
commit 5d292377a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.