use template strings in readme es6

master
Tejas Manohar 2015-10-11 17:43:45 -05:00 committed by Jonathan Ong
parent 88c35c1a0e
commit a13ae6fc95
1 changed files with 1 additions and 1 deletions

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