From 805be42f7ac411a261f83c01ff531f8f416eb452 Mon Sep 17 00:00:00 2001 From: Greg Johnston Date: Thu, 1 Aug 2024 19:29:46 -0400 Subject: [PATCH] chore: fix doctest --- reactive_graph/src/computed.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactive_graph/src/computed.rs b/reactive_graph/src/computed.rs index d6f8335e1..0041e4768 100644 --- a/reactive_graph/src/computed.rs +++ b/reactive_graph/src/computed.rs @@ -69,13 +69,14 @@ pub use selector::*; /// |state, n| state.name = n, /// ); /// +/// # if false { // don't run effects in doctest /// Effect::new(move |_| { -/// // note: in the browser, use leptos::log! instead /// println!("name is {}", name.get()); /// }); /// Effect::new(move |_| { /// println!("count is {}", count.get()); /// }); +/// # } /// /// // setting count only causes count to log, not name /// set_count.set(42);