minor fixes

This commit is contained in:
Ilya Kantor 2020-08-04 10:30:13 +03:00
parent d2f7d14288
commit fb4dda68e5

View file

@ -83,7 +83,7 @@ function f() {
} }
``` ```
We will get this error if we do not put `async` before a function. As said, `await` only works inside an `async function`. We may get this error if we forget to put `async` before a function. As said, `await` only works inside an `async function`.
```` ````
Let's take the `showAvatar()` example from the chapter <info:promise-chaining> and rewrite it using `async/await`: Let's take the `showAvatar()` example from the chapter <info:promise-chaining> and rewrite it using `async/await`: