Merge pull request #967 from quangnd/patch-1

Fix typo at Async/Await solution
This commit is contained in:
Ilya Kantor 2019-05-07 09:20:13 +02:00 committed by GitHub
commit 42f1dba467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ loadJson('no-such-user.json')
Notes:
1. The function `loadUrl` becomes `async`.
1. The function `loadJson` becomes `async`.
2. All `.then` inside are replaced with `await`.
3. We can `return response.json()` instead of awaiting for it, like this: