Skip to content

Commit

Permalink
fix weird variable name in example
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 27, 2013
1 parent 8a7a695 commit a71d264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/content-negotiation/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ app.get('/', function(req, res){
// this to add a layer of abstraction
// and make things a bit more declarative:

function format(requestHandlerName) {
var requestHandler = require(requestHandlerName);
function format(path) {
var requestHandler = require(path);
return function(req, res){
res.format(requestHandler);
}
Expand Down

0 comments on commit a71d264

Please sign in to comment.