Fix typo in example for Koa instantiation

need a capital Koa constant
master
Kwyn Alice Meagher 2015-10-24 12:35:08 -07:00
parent c86e3faeb1
commit dce805b0ad
1 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@ $ node my-koa-app.js
The obligatory hello world application:
```js
const koa = require('koa');
const Koa = require('koa');
const app = new Koa();
app.use(function *(){
@ -55,7 +55,7 @@ app.listen(3000);
its upstream behaviour.
```js
const koa = require('koa');
const Koa = require('koa');
const app = new Koa();
// x-response-time
@ -105,7 +105,7 @@ app.listen(3000);
`Server#listen()`. These arguments are documented on [nodejs.org](http://nodejs.org/api/http.html#http_server_listen_port_hostname_backlog_callback). The following is a useless Koa application bound to port `3000`:
```js
const koa = require('koa');
const Koa = require('koa');
const app = new Koa();
app.listen(3000);
```
@ -114,7 +114,7 @@ app.listen(3000);
```js
const http = require('http');
const koa = require('koa');
const Koa = require('koa');
const app = new Koa();
http.createServer(app.callback()).listen(3000);
```
@ -124,7 +124,7 @@ http.createServer(app.callback()).listen(3000);
```js
const http = require('http');
const koa = require('koa');
const Koa = require('koa');
const app = new Koa();
http.createServer(app.callback()).listen(3000);
http.createServer(app.callback()).listen(3001);