From a58223c1c39c6733a16cbd92005ca56fb71ce120 Mon Sep 17 00:00:00 2001 From: Tien Pham Date: Sun, 11 Nov 2018 21:04:10 +0200 Subject: [PATCH] Update solution.md --- 6-async/04-promise-api/01-promise-errors-as-results/solution.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/6-async/04-promise-api/01-promise-errors-as-results/solution.md b/6-async/04-promise-api/01-promise-errors-as-results/solution.md index a8646364..17ac6ba5 100644 --- a/6-async/04-promise-api/01-promise-errors-as-results/solution.md +++ b/6-async/04-promise-api/01-promise-errors-as-results/solution.md @@ -12,7 +12,7 @@ Promise.all( Here we have an array of `fetch(...)` promises that goes to `Promise.all`. -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. +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. Here's how: