Skip to content

Commit bb5ad3b

Browse files
committed
tweak docs about where {@const} is allowed
1 parent 9cc2de8 commit bb5ad3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ The `{@const ...}` tag defines a local constant.
474474
{/each}
475475
```
476476

477-
`{@const}` is only allowed as direct child of `{#each}` block, `{#then}` and `{#catch}` block, `<Component />` and `<svelte:fragment />` element.
477+
`{@const}` is only allowed as direct child of `{#each}`, `{:then}`, `{:catch}`, `<Component />` or `<svelte:fragment />`.
478478

479479

480480
### Element directives

0 commit comments

Comments
 (0)