Skip to content

Commit

Permalink
fix(docs): better description and formatting keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
HicaroD committed Jan 16, 2024
1 parent 4726f58 commit b6d1eed
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/errors/E0719.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# E0719: unexpected 'await' keyword on function declaration

For defining asynchronous functions, you need to explicitly annotate a
function with `async` keyword, not `await`.
If you meant to define an asynchronous function, you need to explicitly annotate
the function with `async` keyword, not `await`.

```javascript
await function f() {};
await function f() {}
```

To fix this warning, simply replace 'await' by 'async'. Now, you have an
asynchronous and you're able to use 'await' inside this function.
To fix this warning, simply replace `await` by `async`. Now, you have an
asynchronous function and you're able to use `await` inside it.

```javascript
async function f() {}
Expand Down

0 comments on commit b6d1eed

Please sign in to comment.