Skip to content

Commit a58223c

Browse files
author
Tien Pham
authored
Update solution.md
1 parent d425110 commit a58223c

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

6-async/04-promise-api/01-promise-errors-as-results/solution.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Promise.all(
1212

1313
Here we have an array of `fetch(...)` promises that goes to `Promise.all`.
1414

15-
We can't change the way `Promise.all` works: if it detects an error, then it rejects with it. So we need to prevent any error from occuring. Instead, if a `fetch` error happens, we need to treat it as a "normal" result.
15+
We can't change the way `Promise.all` works: if it detects an error, then it rejects with it. So we need to prevent any error from occurring. Instead, if a `fetch` error happens, we need to treat it as a "normal" result.
1616

1717
Here's how:
1818

0 commit comments

Comments
 (0)