Fix GitHub casing (#959)

Fix GitHub casing
This commit is contained in:
Alexey Pyltsyn 2019-05-04 12:09:10 +03:00 committed by GitHub
commit 5e37dbdc9c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,14 +283,14 @@ fetch('/article/promise-chaining/user.json')
Now let's do something with the loaded user. Now let's do something with the loaded user.
For instance, we can make one more request to github, load the user profile and show the avatar: For instance, we can make one more request to GitHub, load the user profile and show the avatar:
```js run ```js run
// Make a request for user.json // Make a request for user.json
fetch('/article/promise-chaining/user.json') fetch('/article/promise-chaining/user.json')
// Load it as json // Load it as json
.then(response => response.json()) .then(response => response.json())
// Make a request to github // Make a request to GitHub
.then(user => fetch(`https://api.github.com/users/${user.name}`)) .then(user => fetch(`https://api.github.com/users/${user.name}`))
// Load the response as json // Load the response as json
.then(response => response.json()) .then(response => response.json())