Skip to content

Commit d7e4b1c

Browse files
docs: fix minor typos (#8268)
Co-authored-by: Ben McCann <[email protected]>
1 parent ff5c14d commit d7e4b1c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

site/content/docs/03-template-syntax.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ Like actions, transitions can have parameters.
10241024

10251025
Transitions can use custom functions. If the returned object has a `css` function, Svelte will create a CSS animation that plays on the element.
10261026

1027-
The `t` argument passed to `css` is a value between `0` and `1` after the `easing` function has been applied. *In* transitions run from `0` to `1`, *out* transitions run from `1` to `0` — in other words `1` is the element's natural state, as though no transition had been applied. The `u` argument is equal to `1 - t`.
1027+
The `t` argument passed to `css` is a value between `0` and `1` after the `easing` function has been applied. *In* transitions run from `0` to `1`, *out* transitions run from `1` to `0` — in other words, `1` is the element's natural state, as though no transition had been applied. The `u` argument is equal to `1 - t`.
10281028

10291029
The function is called repeatedly *before* the transition begins, with different `t` and `u` arguments.
10301030

@@ -1415,7 +1415,7 @@ Svelte's CSS Variables support allows for easily themeable components:
14151415

14161416
---
14171417

1418-
So you can set a high level theme color:
1418+
So you can set a high-level theme color:
14191419

14201420
```css
14211421
/* global.css */
@@ -1575,7 +1575,7 @@ Note that explicitly passing in an empty named slot will add that slot's name to
15751575

15761576
---
15771577

1578-
Slots can be rendered zero or more times, and can pass values *back* to the parent using props. The parent exposes the values to the slot template using the `let:` directive.
1578+
Slots can be rendered zero or more times and can pass values *back* to the parent using props. The parent exposes the values to the slot template using the `let:` directive.
15791579

15801580
The usual shorthand rules apply — `let:item` is equivalent to `let:item={item}`, and `<slot {item}>` is equivalent to `<slot item={item}>`.
15811581

@@ -1666,7 +1666,7 @@ If `this` is falsy, no component is rendered.
16661666

16671667
The `<svelte:element>` element lets you render an element of a dynamically specified type. This is useful for example when displaying rich text content from a CMS. Any properties and event listeners present will be applied to the element.
16681668

1669-
The only supported binding is `bind:this`, since the element type specific bindings that Svelte does at build time (e.g. `bind:value` for input elements) do not work with a dynamic tag type.
1669+
The only supported binding is `bind:this`, since the element type-specific bindings that Svelte does at build time (e.g. `bind:value` for input elements) do not work with a dynamic tag type.
16701670

16711671
If `this` has a nullish value, the element and its children will not be rendered.
16721672

0 commit comments

Comments
 (0)