Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ko-noguchi committed Feb 14, 2019
1 parent 24432f6 commit 1e6c58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/async-await.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const foo = wrapToReturnPromise(function* () {
});
```

`wrapToReturnPromise`はジェネレータ関数を実行して`generator`を取得し、`generator.next()`を使います。返却値が`promise`なら、その`promise``try`+`catch`し、結果に応じて、`generator.next(result)`または `generator.throw(error)`をコールします。それでおしまい!
`wrapToReturnPromise`はジェネレータ関数を実行して`generator`を取得し、`generator.next()`を使います。返却値が`promise`なら、その`promise``then`+`catch`し、結果に応じて、`generator.next(result)`または `generator.throw(error)`をコールします。それでおしまい!



Expand Down

0 comments on commit 1e6c58c

Please sign in to comment.