Skip to content

Commit

Permalink
Fix docs typo, missing .to_string() (#768)
Browse files Browse the repository at this point in the history
Compiler was complaining about this. Apparently we need .into() or .to_string(). Feel free to change this to whatever is preferred.

In a previous Sycamore version, was this not required?
  • Loading branch information
phocks authored Dec 29, 2024
1 parent 55ac392 commit 5114cb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/next/introduction/your-first-app.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ Sycamore!".

```rust
view! {
Hello(name="Sycamore")
Hello(name="Sycamore".into())
}
```

Expand Down

0 comments on commit 5114cb3

Please sign in to comment.