Skip to content

Commit fc9761f

Browse files
authored
Fixed syntax error bis
1 parent 1036176 commit fc9761f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ With promises, here is how you would handle the error chain:
13611361

13621362
```js
13631363
function getUser() { // This promise will be rejected!
1364-
return new Promise((res, rej) => rej("User not found !")
1364+
return new Promise((res, rej) => rej("User not found !"))
13651365
};
13661366

13671367
function getAvatarByUsername(userId) {
@@ -1391,7 +1391,7 @@ But with *async* functions, if an error is thrown in it's body the promise will
13911391

13921392
```js
13931393
function getUser() { // This promise will be rejected!
1394-
return new Promise((res, rej) => rej("User not found !")
1394+
return new Promise((res, rej) => rej("User not found !"))
13951395
};
13961396

13971397
async function getAvatarByUsername(userId) => {

0 commit comments

Comments
 (0)