Skip to content

Commit 6afd138

Browse files
Merge pull request #4 from doms/patch-1
fix typo
2 parents 8f1e73b + 367dda3 commit 6afd138

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ebook/19_ES8_async-and-await.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Let's break down what we just did:
111111
- the keyword will tell JavaScript to always return a promise
112112
- if we specify to `return <non-promise>` it will return a value wrapped inside a promise
113113
- the `await` keyword only works inside an `async` function.
114-
- as the name implies, `await` will tell JavaScript to wait until the promie returns its result
114+
- as the name implies, `await` will tell JavaScript to wait until the promise returns its result
115115

116116
Let's see what happens if we try to use `await` outside an `async` function
117117

@@ -166,4 +166,4 @@ asyncFunc();
166166

167167
asyncFunc().catch(console.log);
168168
// TypeError: Failed to fetch
169-
```
169+
```

0 commit comments

Comments
 (0)