chore: fix doctest

This commit is contained in:
Greg Johnston 2024-08-01 19:29:46 -04:00
parent bb63a1521e
commit 805be42f7a

View file

@ -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);