Skip to content

Commit b7f40bd

Browse files
Fix typo loose to lose
1 parent 8c1782b commit b7f40bd

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)