site: clarify file -> module in <svelte:self> tutorial (#5171)

pull/5139/head
João Paulo 5 years ago committed by Christopher Mardell
parent 1955089a45
commit c906e21f7f

@ -14,7 +14,7 @@ It's useful for things like this folder tree view, where folders can contain *ot
{/if} {/if}
``` ```
...but that's impossible, because a file can't import itself. Instead, we use `<svelte:self>`: ...but that's impossible, because a module can't import itself. Instead, we use `<svelte:self>`:
```html ```html
{#if file.type === 'folder'} {#if file.type === 'folder'}
@ -22,4 +22,4 @@ It's useful for things like this folder tree view, where folders can contain *ot
{:else} {:else}
<File {...file}/> <File {...file}/>
{/if} {/if}
``` ```

Loading…
Cancel
Save