diff --git a/6-async/04-promise-api/article.md b/6-async/04-promise-api/article.md index 7607a46d..e0e5eda4 100644 --- a/6-async/04-promise-api/article.md +++ b/6-async/04-promise-api/article.md @@ -35,7 +35,7 @@ function loadCached(url) { return fetch(url) .then(response => response.text()) .then(text => { - cache[url] = text; + cache.set(url,text); return text; }); }