Skip to content

Commit

Permalink
Fix typo in docs/next/basics/iteration.md (#371)
Browse files Browse the repository at this point in the history
Added missing ctx to view! macro
  • Loading branch information
ekanna authored Feb 26, 2022
1 parent d7475e3 commit 24a1c15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/next/basics/iteration.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ algorithm is used to determine which items need to be re-rendered according to t

```rust
let count = ctx.create_signal(vec![1, 2]);
view! {
view! { ctx,
ul {
Keyed {
iterable: count,
Expand All @@ -31,7 +31,7 @@ generally preferred over `Indexed` because it is more efficient in most scenario

```rust
let count = ctx.create_signal(vec![1, 2]);
view! {
view! { ctx,
ul {
Indexed {
iterable: count,
Expand Down

0 comments on commit 24a1c15

Please sign in to comment.