docs: Fix minor nitpick in documentation (#987)

This commit is contained in:
Shaun Warman 2017-05-21 00:40:08 -05:00 committed by Yiyu He
parent bfce5806c2
commit 302814e7a3

View file

@ -143,10 +143,11 @@ http.createServer(app.callback()).listen(3000);
```js
const http = require('http');
const https = require('https');
const Koa = require('koa');
const app = new Koa();
http.createServer(app.callback()).listen(3000);
http.createServer(app.callback()).listen(3001);
https.createServer(app.callback()).listen(3001);
```
## app.callback()