Skip to content

Commit

Permalink
Update adding-state.md
Browse files Browse the repository at this point in the history
I was referring to this part of the docs multiple times and each time I was puzzled, should I de-reference here or not.

Rust says I should.

Hope this will solve a confusion for future users.
  • Loading branch information
ZAZPRO authored Feb 1, 2025
1 parent 4adf43b commit b3334a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/next/introduction/adding-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ fn CounterDisplay(value: ReadSignal<i32>) -> View {
let counter = create_signal(1);

view! {
CounterDisplay(value=counter)
CounterDisplay(value=*counter)
}
```

Expand Down

0 comments on commit b3334a1

Please sign in to comment.