Skip to content

Commit 98130f8

Browse files
authored
Update solution.md
1 parent 96c311b commit 98130f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • 1-js/11-async/08-async-await/01-rewrite-async

1-js/11-async/08-async-await/01-rewrite-async/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,6 @@ loadJson('no-such-user.json')
2929
}
3030
```
3131

32-
然后外部的代码就可以用 `await` 来等待这个 promise 被解析。在本例中可忽略。
32+
然后外部的代码就可以用 `await` 来等待这个 promise 被决议。在本例中可忽略。
3333
4. `loadJson` 抛出的错误被 `.catch` 处理了。并且我们不能用 `await loadJson(…)`,因为不是在 `async` 函数中。
3434

0 commit comments

Comments
 (0)