From ba4d2260043b8f926660ed600dbcebcf15e784f3 Mon Sep 17 00:00:00 2001 From: Gabriel Hansson Date: Fri, 3 Nov 2023 21:58:45 +0100 Subject: [PATCH] docs: Fix 08_parent_child.md callback example code. (#1976) --- docs/book/src/view/08_parent_child.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/book/src/view/08_parent_child.md b/docs/book/src/view/08_parent_child.md index ffd0126cf9..73d96c6437 100644 --- a/docs/book/src/view/08_parent_child.md +++ b/docs/book/src/view/08_parent_child.md @@ -113,8 +113,7 @@ pub fn App() -> impl IntoView { #[component] pub fn ButtonB(on_click: F) -> impl IntoView where - F: Fn(MouseEvent) + 'static, -pub fn ButtonB(#[prop(into)] on_click: Callback) -> impl IntoView + F: Fn(MouseEvent) + 'static { view! {