Kaynağa Gözat

Fix typo in PostList example in guide

Dave Rolsky 3 yıl önce
ebeveyn
işleme
a9500f3413
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      docs/guide/src/elements/lists.md

+ 1 - 1
docs/guide/src/elements/lists.md

@@ -74,7 +74,7 @@ struct PostListProps<'a> {
 Next, we're going to define our component:
 Next, we're going to define our component:
 
 
 ```rust
 ```rust
-fn App(cx: Scope<PostList?) -> Element {
+fn App(cx: Scope<PostList>) -> Element {
     // First, we create a new iterator by mapping the post array
     // First, we create a new iterator by mapping the post array
     let posts = cx.props.posts.iter().map(|post| rsx!{
     let posts = cx.props.posts.iter().map(|post| rsx!{
         Post {
         Post {