Skip to content

Commit

Permalink
Fix the examples in the README
Browse files Browse the repository at this point in the history
  • Loading branch information
camshaft committed Jan 7, 2013
1 parent e2babef commit 68907da
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ All startup requires is an exported http app:
```js
var express = require("express");

// Export the http app
// Export the express app
var app = module.exports = express();

app.get("/", function (req, res){
res.send("Hello!")
res.send("Hello!");
});
```

### Connect Example
```js
var connect = require("connect");

// Export the http app
// Export the connect app
var app = module.exports = connect();

app.use(function (req, res, next){
res.send("Hello!")
res.send("Hello!");
});
```

Expand Down Expand Up @@ -99,7 +99,7 @@ You can also provide a custom error handler for when you do get an uncaught exce
```js
var express = require("express");

// Export the http app
// Export the express app
var app = module.exports = express();

app.get("/", function (req, res){
Expand All @@ -109,4 +109,4 @@ app.get("/", function (req, res){
module.exports.errorHandler = function (err, req, res) {
res.send("There was an error!");
};
```
```

0 comments on commit 68907da

Please sign in to comment.