diff --git a/documentation/docs/02-runes/04-$effect.md b/documentation/docs/02-runes/04-$effect.md
index d8d3a90d0f..0304b0890a 100644
--- a/documentation/docs/02-runes/04-$effect.md
+++ b/documentation/docs/02-runes/04-$effect.md
@@ -305,9 +305,9 @@ Instead, use `oninput` callbacks or — better still — [function bindings](bin
let spent = $state(0);
let left = $derived(total - spent);
- function updateLeft(left) {
++++ function updateLeft(left) {
spent = total - left;
- }
+ }+++
```