Pārlūkot izejas kodu

Fix typo in PostList example in guide

Dave Rolsky 3 gadi atpakaļ
vecāks
revīzija
a9500f3413
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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:
 
 ```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 {