From 2372bbeb72c3d449342840c3b1f8388cac8b3ab0 Mon Sep 17 00:00:00 2001 From: Pig Fang Date: Tue, 5 Nov 2024 16:19:44 +0800 Subject: [PATCH] docs: fix migration guide typo --- documentation/docs/07-misc/07-v5-migration-guide.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/docs/07-misc/07-v5-migration-guide.md b/documentation/docs/07-misc/07-v5-migration-guide.md index c7cdd36106ff..4ebfb5f905cc 100644 --- a/documentation/docs/07-misc/07-v5-migration-guide.md +++ b/documentation/docs/07-misc/07-v5-migration-guide.md @@ -36,7 +36,7 @@ In Svelte 4, a `$:` statement at the top level of a component could be used to d ``` -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: