Skip to content

Commit 783a06b

Browse files
committed
Remove outdated note about showing type of future
Modern Rust just says “note: calling an async function returns a future” and hides the `Future` type.
1 parent 69f7b8c commit 783a06b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/concurrency/async/async-await.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ Key points:
3131
- Note that this is a simplified example to show the syntax. There is no long
3232
running operation or any real concurrency in it!
3333

34-
- What is the return type of an async call?
35-
- Use `let future: () = async_main(10);` in `main` to see the type.
36-
3734
- The "async" keyword is syntactic sugar. The compiler replaces the return type
3835
with a future.
3936

0 commit comments

Comments
 (0)