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

Fix typo in async.md

This commit is contained in:
hawkphantomnet 2016-06-28 00:36:05 +08:00
parent 4e2fadc8dd
commit 42c51c073e

View File

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