From c7607f6fcc672092f04c8a94f3cc66924b663ffd Mon Sep 17 00:00:00 2001 From: hiraginoyuki Date: Sat, 7 Oct 2023 23:45:27 +0900 Subject: [PATCH] fix: documentation in `leptos_reactive::Trigger` (#1844) --- leptos_dom/src/html.rs | 2 +- leptos_reactive/src/trigger.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/leptos_dom/src/html.rs b/leptos_dom/src/html.rs index e28c336279..46d2ef409e 100644 --- a/leptos_dom/src/html.rs +++ b/leptos_dom/src/html.rs @@ -554,7 +554,7 @@ impl HtmlElement { /// Checks to see if this element is mounted to the DOM as a child /// of `body`. /// - /// This method will always return [`None`] on non-wasm CSR targets. + /// This method will always return `false` on non-wasm CSR targets. #[inline(always)] pub fn is_mounted(&self) -> bool { #[cfg(all(target_arch = "wasm32", feature = "web"))] diff --git a/leptos_reactive/src/trigger.rs b/leptos_reactive/src/trigger.rs index 0d0ca26867..cb7fe48b12 100644 --- a/leptos_reactive/src/trigger.rs +++ b/leptos_reactive/src/trigger.rs @@ -29,7 +29,7 @@ impl Trigger { /// Attempts to notify any reactive code where this trigger is tracked to rerun. /// - /// Returns `None` if the runtime has been disposed. + /// Returns `false` if there is no current reactive runtime. pub fn try_notify(&self) -> bool { with_runtime(|runtime| { runtime.mark_dirty(self.id); @@ -48,7 +48,7 @@ impl Trigger { } /// Attempts to subscribe the running effect to this trigger, returning - /// `None` if the runtime has been disposed. + /// `false` if there is no current reactive runtime. pub fn try_track(&self) -> bool { let diagnostics = diagnostics!(self);