use template strings in readme es6

This commit is contained in:
Tejas Manohar 2015-10-11 17:43:45 -05:00 committed by Jonathan Ong
parent 88c35c1a0e
commit a13ae6fc95

View file

@ -53,7 +53,7 @@ app.use(function *(next){
const start = new Date;
yield next;
const ms = new Date - start;
console.log('%s %s - %s', this.method, this.url, ms);
console.log(`${this.method} ${this.url} - ${ms}`);
});
// response