Skip to content

Commit 97ab8e7

Browse files
committed
Minor typos.
1 parent 44de15f commit 97ab8e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/template-strings.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Never gonna let you down`;
2121
```
2222

2323
#### String Interpolation
24-
Another common use case is when you want to generate some string out of some static strings + some variables. For this you would need some *templating logic* and this is where *template strings* get there name from. Here's how you would potentially generate an html string previously:
24+
Another common use case is when you want to generate some string out of some static strings + some variables. For this you would need some *templating logic* and this is where *template strings* get their name from. Here's how you would potentially generate an html string previously:
2525

2626
```ts
2727
var lyrics = 'Never gonna give you up';
@@ -77,6 +77,6 @@ function htmlEscape(literals, ...placeholders) {
7777
For pre ES6 compile targets the code is fairly simple. Multiline strings become escaped strings. String interpolation becomes *string concatenation*. Tagged Templates become function calls.
7878

7979
#### Summary
80-
Multiline strings and string interpolation are just great things to have in any language. Its great that you can now use them in your JavaScript (thanks TypeScript!). Tagged templates allow you to create powerful string utilities.
80+
Multiline strings and string interpolation are just great things to have in any language. It's great that you can now use them in your JavaScript (thanks TypeScript!). Tagged templates allow you to create powerful string utilities.
8181

82-
{% include "footer.md" %}
82+
{% include "footer.md" %}

0 commit comments

Comments
 (0)