Skip to content

Commit 5dbae29

Browse files
authored
docs:Update App.svelte in Clock example according new rune syntax (sveltejs#1127)
Update App.svelte
1 parent 8e6fe80 commit 5dbae29

File tree

1 file changed

+1
-1
lines changed
  • apps/svelte.dev/content/examples/12-svg/01-clock/+assets

1 file changed

+1
-1
lines changed

apps/svelte.dev/content/examples/12-svg/01-clock/+assets/App.svelte

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
let time = $state(new Date());
55
66
// these automatically update when `time`
7-
// changes, because of the `$:` prefix
7+
// changes, because of the $derived
88
let hours = $derived(time.getHours());
99
let minutes = $derived(time.getMinutes());
1010
let seconds = $derived(time.getSeconds());

0 commit comments

Comments
 (0)