Skip to content

Commit 54aa8f1

Browse files
gburtiniljharb
authored andcommitted
[guide] Fix no-interpolation template string example
The example showed a template string being used with no interpolation as "good". While it met the rule being described, it violated another rule for no reason.
1 parent 1ab6aae commit 54aa8f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ Other Style Guides
565565

566566
// good
567567
const foo = '\'this\' is "quoted"';
568-
const foo = `'this' is "quoted"`;
568+
const foo = `my name is '${name}'`;
569569
```
570570
571571
**[⬆ back to top](#table-of-contents)**

0 commit comments

Comments
 (0)