Skip to content

Commit dd5d96c

Browse files
minor edits
1 parent 3e86657 commit dd5d96c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1602,7 +1602,7 @@ Note that explicitly passing in an empty named slot will add that slot's name to
16021602

16031603
Slots can be rendered zero or more times.
16041604

1605-
The `let:` directive gives a slot template access to variables defined in the component that uses them.
1605+
The `let:` directive gives a slot template access to variables defined in the component that they are provided to.
16061606
The usual shorthand rules apply — `let:item` is equivalent to `let:item={item}`, and `<slot {item}>` is equivalent to `<slot item={item}>`.
16071607

16081608
```sv
@@ -1618,7 +1618,7 @@ The usual shorthand rules apply — `let:item` is equivalent to `let:item={item}
16181618
16191619
<!-- App.svelte -->
16201620
<!-- the `let:itemData={thing}` directive makes the value that `FancyList` pases as the `itemData` prop
1621-
available to the slot template as the `thing` variable -->
1621+
available to the slot template as a variable called `thing` -->
16221622
<FancyList {items} let:itemData={thing}>
16231623
<div>{thing.text}</div>
16241624
</FancyList>

0 commit comments

Comments
 (0)