Fix typo in PostList example in guide

This commit is contained in:
Dave Rolsky committed 2022-01-06 10:11:30 -06:00
1 parent 4aadec1e30
commit a9500f3413
1 file changed
+1 -1
+1 -1
View File
@@ -74,7 +74,7 @@ struct PostListProps<'a> {
Next, we're going to define our component:
```rust
fn App(cx: Scope<PostList?) -> Element {
fn App(cx: Scope<PostList>) -> Element {
// First, we create a new iterator by mapping the post array
let posts = cx.props.posts.iter().map(|post| rsx!{
Post {