Skip to content

Commit a2d5481

Browse files
authored
Merge pull request basarat#250 from melfa/patch-1
fixed typo
2 parents 47d5f0a + e97b4dc commit a2d5481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/async-await.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ const foo = wrapToReturnPromise(function* () {
4343
});
4444
```
4545

46-
where the `wrapToReturnPromise` just executes the generator function to get the `generator` and then use `generator.next()`, if the value is a `promise` it would `then`+`catch` the promise and depending upon the result call `genertor.next(result)` or `genertor.throw(error)`. That's it!
46+
where the `wrapToReturnPromise` just executes the generator function to get the `generator` and then use `generator.next()`, if the value is a `promise` it would `then`+`catch` the promise and depending upon the result call `generator.next(result)` or `generator.throw(error)`. That's it!
4747

4848
[generators]:./generators.md

0 commit comments

Comments
 (0)