fix snippet typo and update examples to be consistent

This commit is contained in:
Stefan Feješ
2018-01-08 21:17:52 +01:00
parent c0bd173246
commit 757580f23f
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ const httpGet = (url, callback, err = console.error) => {
```
```js
httpGet('https://website.com/posts', request => {
httpGet('https://website.com/users', request => {
console.log(request.responseText);
}); // 'Retrieves all users from the database'
```