diff --git a/docs/book/src/view/03_components.md b/docs/book/src/view/03_components.md index 90b66488b..29416b284 100644 --- a/docs/book/src/view/03_components.md +++ b/docs/book/src/view/03_components.md @@ -212,7 +212,7 @@ fn ProgressBar( progress: F ) -> impl IntoView where - F: Fn() -> i32 + F: Fn() -> i32 + 'static, { view! { cx, Note that generic component props _cannot_ be specified inline (as ` i32>`) -or as `progress: impl Fn() -> i32`, in part because they’re actually used to generate +or as `progress: impl Fn() -> i32 + 'static,`, in part because they’re actually used to generate a `struct ProgressBarProps`, and struct fields cannot be `impl` types. ### `into` Props