diff --git a/docs/errors/E0719.md b/docs/errors/E0719.md index 1987c9037c..cdc28a2447 100644 --- a/docs/errors/E0719.md +++ b/docs/errors/E0719.md @@ -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() {}