website/docs/tutorial: fix two typos (#2971)

This commit is contained in:
__ 2022-12-20 07:38:25 -06:00 committed by GitHub
parent 6160703c55
commit a6a442fbc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -372,7 +372,7 @@ struct VideosListProps {
}
```
Then we modify the `VideosList` component to pass the "emit" the selected video to the callback.
Then we modify the `VideosList` component to "emit" the selected video to the callback.
```rust ,ignore {2-4,6-12,15-16}
#[function_component(VideosList)]
@ -397,7 +397,7 @@ Then we modify the `VideosList` component to pass the "emit" the selected video
```
Next, we need to modify the usage of `VideosList` to pass that callback. But before doing that, we should create
a new component, `VideoDetails`, component that is displayed when a video is clicked.
a new component, `VideoDetails`, that is displayed when a video is clicked.
```rust
use website_test::tutorial::Video;