Skip to content

Commit 87e382a

Browse files
authored
docs(*): fix async function syntax error (#1490)
1 parent a60261d commit 87e382a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ return getAsync('foo').then(function(res) {
7474

7575
or using [async await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function):
7676
```js
77-
async myFunc() {
77+
async function myFunc() {
7878
const res = await getAsync('foo');
7979
console.log(res);
8080
}

0 commit comments

Comments
 (0)