[docs] adjust code snippet to conform with previous one

Backported from https://github.com/sveltejs/learn.svelte.dev/pull/143
pull/8126/head
Simon H 2 years ago committed by GitHub
parent ad8dbfb9b9
commit 670f458056
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -19,7 +19,7 @@ Most web applications have to deal with asynchronous data at some point. Svelte
If you know that your promise can't reject, you can omit the `catch` block. You can also omit the first block if you don't want to show anything until the promise resolves:
```html
{#await promise then value}
<p>the value is {value}</p>
{#await promise then number}
<p>the number is {number}</p>
{/await}
```
```

Loading…
Cancel
Save