1
0
mirror of https://github.com/ruanyf/es6tutorial.git synced 2025-05-24 18:32:22 +00:00

Merge pull request #224 from hawkphantomnet/gh-pages

Fix typo in async.md
This commit is contained in:
Ruan YiFeng 2016-06-29 05:21:59 +08:00 committed by GitHub
commit 377e5e3919

View File

@ -98,7 +98,7 @@ Promise 的最大问题是代码冗余原来的任务被Promise 包装了一
举例来说,读取文件的协程写法如下。
```javascript
function *asnycJob() {
function *asyncJob() {
// ...其他代码
var f = yield readFile(fileA);
// ...其他代码