Skip to content

Commit eb3f7f4

Browse files
authored
Merge pull request #752 from richardzhang2/patch-1
Fix typo loose to lose
2 parents 308179f + b7f40bd commit eb3f7f4

File tree

1 file changed

+1
-1
lines changed
  • 6-async/04-promise-api/02-promise-errors-as-results-2

1 file changed

+1
-1
lines changed

6-async/04-promise-api/02-promise-errors-as-results-2/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Promise.all(urls.map(url => fetch(url)))
2525
});
2626
```
2727

28-
The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we loose results of all the other requests. So the code above is not fault-tolerant, just like the one in the previous task.
28+
The problem is that if any of requests fails, then `Promise.all` rejects with the error, and we lose results of all the other requests. So the code above is not fault-tolerant, just like the one in the previous task.
2929

3030
Modify the code so that the array in the line `(*)` would include parsed JSON for successful requests and error for errored ones.
3131

0 commit comments

Comments
 (0)