Skip to content

Commit

Permalink
docs: fix migration guide typo (#14155)
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane authored and trueadm committed Nov 7, 2024
1 parent bbb3541 commit 85f7cf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/07-misc/07-v5-migration-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In Svelte 4, a `$:` statement at the top level of a component could be used to d
</script>
```

As with `$state`, nothing else changes. `double` is still the number itself, and you read it directly, without a wrapper like `.value` or `getCount()`.
As with `$state`, nothing else changes. `double` is still the number itself, and you read it directly, without a wrapper like `.value` or `getDouble()`.

A `$:` statement could also be used to create side effects. In Svelte 5, this is achieved using the `$effect` rune:

Expand Down

0 comments on commit 85f7cf0

Please sign in to comment.