Skip to content

Commit 977bb9d

Browse files
committed
Reword based on PR comments
1 parent 0fda1e5 commit 977bb9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/content/docs/01-component-format.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ Total: {total}
193193
```
194194

195195
---
196-
Is important to note that the reactive blocks are ordered via simple static analysis at compile time, and all the compiler looks at are the variables that are assigned to and used within the block itself, not in any functions called by them. This means that `yDependant` will not be updated in the following example:
196+
It is important to note that the reactive blocks are ordered via simple static analysis at compile time, and all the compiler looks at are the variables that are assigned to and used within the block itself, not in any functions called by them. This means that `yDependent` will not be updated when `x` is updated in the following example:
197197

198198
```sv
199199
<script>
@@ -204,12 +204,12 @@ Is important to note that the reactive blocks are ordered via simple static anal
204204
y = value;
205205
}
206206
207-
$: yDependant = y;
207+
$: yDependent = y;
208208
$: setY(x);
209209
</script>
210210
```
211211

212-
Moving the line `$: yDependant = y` bellow `$: setY(x)` will update `yDependant`.
212+
Moving the line `$: yDependent = y` bellow `$: setY(x)` will cause `yDependent` to be updated when `x` is updated.
213213

214214
---
215215

0 commit comments

Comments
 (0)