Skip to content

Commit

Permalink
docs: typo fix "aync => async"
Browse files Browse the repository at this point in the history
  • Loading branch information
bingqichen authored and fengmk2 committed Apr 16, 2017
1 parent 492c97d commit d4c345d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/zh-cn/tutorials/async-function.md
Expand Up @@ -7,7 +7,7 @@ title: 使用 async function 开发应用

## controller & service

[controller] 章节中,我们提供了 controller 的两种写法:基于类和普通方法,其中所有用 generator function 实现的地方都可以用 aync function 来实现,代码逻辑没有任何变化,仅需要将 yield 语法改成 await 语法。
[controller] 章节中,我们提供了 controller 的两种写法:基于类和普通方法,其中所有用 generator function 实现的地方都可以用 async function 来实现,代码逻辑没有任何变化,仅需要将 yield 语法改成 await 语法。
[service][controller] 一样,所有的异步方法都可以用 async function 替换文档中的 generator function。

举个例子,将 [controller] 文档中的示例改造成 async function 模式:
Expand Down

0 comments on commit d4c345d

Please sign in to comment.