mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: fix doctest
This commit is contained in:
parent
bb63a1521e
commit
805be42f7a
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue