examples: fix route in params example

closes #3310
This commit is contained in:
Owen Luke
2017-05-17 16:00:49 +08:00
committed by Douglas Christopher Wilson
parent 6da454c7fb
commit fde8f647d3
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ app.get('/users/:from-:to', function(req, res, next){
var from = req.params.from;
var to = req.params.to;
var names = users.map(function(user){ return user.name; });
res.send('users ' + names.slice(from, to).join(', '));
res.send('users ' + names.slice(from, to + 1).join(', '));
});
/* istanbul ignore next */