Skip to content

Commit

Permalink
Docs: Make prefer-template examples consistent.
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto committed Mar 14, 2016
1 parent a77ad1b commit 4e50332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/prefer-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ The following patterns are not considered problems:

var str = "Hello World!";
var str = `Hello, ${name}!`;
var str = `Time: ${12 * 60 * 60}`;
var str = `Time: ${12 * 60 * 60 * 1000}`;

// This is reported by `no-useless-concat`.
var str = "Hello, " + "World!";
Expand Down

0 comments on commit 4e50332

Please sign in to comment.