diff --git a/README.md b/README.md index 8a6d2f7..27458a7 100644 --- a/README.md +++ b/README.md @@ -78,13 +78,13 @@ you may alter this within the callback using `res.type()` or `res.set('Content-Type', ...)`. res.format({ - 'text/plain'(){ + 'text/plain': function () { res.send('hey'); }, - 'text/html'(){ + 'text/html': function () { res.send('

hey

'); }, - 'appliation/json'(){ + 'appliation/json': function () { res.send({ message: 'hey' }); } });