Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Nov 8, 2023
1 parent bcd8d34 commit 6f98ff6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/manual/03 Pointers.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ id.val = 35; // triggers the fetch effect again
> [!WARNING]
> Keep in mind that effect handler are only triggered by pointer updates.
> Updating the value of a plain JavaScript variable does not have an effect:
> Updating the value of a plain JavaScript variable does not work:
> ```ts
> let id = 10;
> effect(() => console.log("id: " + id));
Expand All @@ -188,7 +188,7 @@ id.val = 35; // triggers the fetch effect again
### Clearing effects
The `effect` function returns an object with a `dispose()` method that can be called to clear the effect.
The `effect()` function returns an object with a `dispose()` method that can be called to clear the effect.
```ts
function task() {
Expand All @@ -205,7 +205,7 @@ function task() {
}
```
Alternatively, effects can be restricted to the livetime of a scope with the `using` keyword.
Alternatively, effects can be restricted to the lifetime of a scope with the `using` keyword.
```ts
function task() {
const x = $$(0);
Expand Down

0 comments on commit 6f98ff6

Please sign in to comment.