Update getting-started.md

pull/298/head
stirlingx 3 years ago committed by GitHub
parent 1eb99c7b44
commit c37fb18a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -153,7 +153,7 @@ async fn do_something() {
} }
``` ```
需要注意,**异步函数的返回值是一个 `Future` **,若直接调用该函数,不会输出任何结果,因为 `Future` 还未被执行: 需要注意,**异步函数的返回值是一个 `Future`**,若直接调用该函数,不会输出任何结果,因为 `Future` 还未被执行:
```rust ```rust
fn main() { fn main() {
do_something(); do_something();

Loading…
Cancel
Save