Skip to content

Commit a4ae6d8

Browse files
authored
Promise. Update article.md
Исправление опечаток в примере.
1 parent 885ade4 commit a4ae6d8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

1-js/10-es-modern/11-promise/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ httpGet('/article/promise/user.json')
608608
609609
httpGet('/article/promise/userNoGithub.json')
610610
.then(JSON.parse)
611-
.then(user => loadUrl(`https://api.github.com/users/${user.name}`))
611+
.then(user => httpGet(`https://api.github.com/users/${user.name}`))
612612
.then(
613613
JSON.parse,
614614
function githubError(error) {
@@ -618,7 +618,7 @@ httpGet('/article/promise/userNoGithub.json')
618618
throw error;
619619
}
620620
}
621-
})
621+
)
622622
.then(function showAvatar(githubUser) {
623623
let img = new Image();
624624
img.src = githubUser.avatar_url;

0 commit comments

Comments
 (0)