Skip to content

Commit 8c7cb40

Browse files
authored
Fix typo
1 parent 4771acf commit 8c7cb40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/template-strings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function htmlEscape(literals: TemplateStringsArray, ...placeholders: string[]) {
7272
return result;
7373
}
7474
```
75-
> Note: You can annotate `placeholders` to be any `[]`. Whetever you annotate it as, TypeScript will type check to make sure the placeholders used to call the tag match the annotation. For example if you expect to deal with `string` or `number`s you can annotate `...placeholders:(string | number)[]`
75+
> Note: You can annotate `placeholders` to be any `[]`. Whatever you annotate it as, TypeScript will type check to make sure the placeholders used to call the tag match the annotation. For example if you expect to deal with `string` or `number`s you can annotate `...placeholders:(string | number)[]`
7676
7777
#### Generated JS
7878
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.

0 commit comments

Comments
 (0)