Skip to content

Commit 1757746

Browse files
authored
Update article.md
1 parent 362483e commit 1757746

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

6-async/05-async-await/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ async function f() {
1212
}
1313
```
1414

15-
The word "async" before a function means one simple thing: a function always returns a promise. If it's not so, then the value is wrapped in `Promise.resolve`.
15+
The word "async" before a function means one simple thing: a function always returns a promise. If the code has `return <non-promise>` in it, then JavaScript automatically wraps it into a resolved promise with that value.
1616

17-
For instance, the code above returns `Promise.resolve(1)`:
17+
For instance, the code above returns a resolved promise with the result of `1`:
1818

1919
```js run
2020
async function f() {

0 commit comments

Comments
 (0)