Browse files

Fix the examples in the README

  • Loading branch information...
1 parent e2babef commit 68907dad72d205fe2ac1ce8874f6b7d170c19f17 @camshaft committed Jan 7, 2013
Showing with 6 additions and 6 deletions.
  1. +6 −6 README.md
View
12 README.md
@@ -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!");
});
```
@@ -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){
@@ -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.