Skip to content

Commit 1f64418

Browse files
author
Daniil Mira
authored
Fix missing deref in adding-state.md example (#787)
Update adding-state.md 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.
1 parent 4adf43b commit 1f64418

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/next/introduction/adding-state.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ fn CounterDisplay(value: ReadSignal<i32>) -> View {
295295
let counter = create_signal(1);
296296

297297
view! {
298-
CounterDisplay(value=counter)
298+
CounterDisplay(value=*counter)
299299
}
300300
```
301301

0 commit comments

Comments
 (0)