Merge pull request #645 from tejasmanohar/mention_es7
docs: mention es2016 when discussing async functions
This commit is contained in:
commit
0c136fd04c
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ $ npm install koa
|
||||||
|
|
||||||
## v2 Alpha
|
## v2 Alpha
|
||||||
|
|
||||||
Koa v2 is currently in alpha. In this new version, the middleware function signature completely changes in favor of ES6 syntax:
|
Koa v2 is currently in alpha. In this new version, the middleware function signature completely changes in favor of ES2015-2016 syntax:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
// uses async arrow functions
|
// uses async arrow functions
|
||||||
|
|
Loading…
Reference in a new issue