Skip to content

Commit deebd40

Browse files
committed
2 parents 9ef7943 + 75a4130 commit deebd40

File tree

4 files changed

+10
-5
lines changed
  • content/tutorial
    • 01-svelte/04-logic/06-await-blocks
    • 02-sveltekit/02-routing/03-params
    • 03-advanced-svelte/06-classes/02-class-shorthand/app-a/src/lib
  • src/routes/tutorial/[slug]

4 files changed

+10
-5
lines changed

content/tutorial/01-svelte/04-logic/06-await-blocks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Most web applications have to deal with asynchronous data at some point. Svelte
1919
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:
2020

2121
```svelte
22-
{#await promise then value}
23-
<p>the value is {value}</p>
22+
{#await promise then number}
23+
<p>The number is {number}</p>
2424
{/await}
2525
```

content/tutorial/02-sveltekit/02-routing/03-params/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ Let's create that file:
1414

1515
We can now navigate from the `/blog` page to individual blog posts. In the next chapter, we'll see how to load their content.
1616

17-
> Multiple route parameters can appear _within_ one URL segment, as long as they are separated by at least one static character: `foo/[bar]x[baz]` is a valid route where `[bar]` and `[bar]` are dynamic parameters.
17+
> Multiple route parameters can appear _within_ one URL segment, as long as they are separated by at least one static character: `foo/[bar]x[baz]` is a valid route where `[bar]` and `[baz]` are dynamic parameters.

content/tutorial/03-advanced-svelte/06-classes/02-class-shorthand/app-a/src/lib/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
big
88
</label>
99

10-
<div class:big>
10+
<div class:big={big}>
1111
some {big ? 'big' : 'small'} text
1212
</div>
1313

src/routes/tutorial/[slug]/Sidebar.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,12 @@
7373
</div>
7474

7575
<footer>
76-
<a class="edit" href="https://github.com/sveltejs/learn.svelte.dev/tree/main/{exercise.dir}">
76+
<a
77+
target="_blank"
78+
rel="noreferrer"
79+
class="edit"
80+
href="https://github.com/sveltejs/learn.svelte.dev/tree/main/{exercise.dir}"
81+
>
7782
Edit this page
7883
</a>
7984
</footer>

0 commit comments

Comments
 (0)