tweak docs about where `{@const}` is allowed

pull/6413/head
Conduitry 5 years ago
parent 9cc2de856a
commit bb5ad3b9a0

@ -474,7 +474,7 @@ The `{@const ...}` tag defines a local constant.
{/each}
```
`{@const}` is only allowed as direct child of `{#each}` block, `{#then}` and `{#catch}` block, `<Component />` and `<svelte:fragment />` element.
`{@const}` is only allowed as direct child of `{#each}`, `{:then}`, `{:catch}`, `<Component />` or `<svelte:fragment />`.
### Element directives

Loading…
Cancel
Save