Skip to content

Commit ea568ee

Browse files
Sync svelte docs (#1194)
sync svelte docs Co-authored-by: Rich-Harris <1162160+Rich-Harris@users.noreply.github.com>
1 parent 425d323 commit ea568ee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

apps/svelte.dev/content/docs/svelte/06-runtime/03-lifecycle-hooks.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ With runes, we can use `$effect.pre`, which behaves the same as `$effect` but ru
148148
}
149149
150150
function toggle() {
151-
toggleValue = !toggleValue;
151+
theme = theme === 'dark' ? 'light' : 'dark';
152152
}
153153
</script>
154154

apps/svelte.dev/content/docs/svelte/07-misc/99-faq.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ It will show up on hover.
4747
- You can use markdown here.
4848
- You can also use code blocks here.
4949
- Usage:
50-
```tsx
50+
```svelte
5151
<main name="Arethra">
5252
```
5353
-->

0 commit comments

Comments
 (0)