Skip to content

Commit

Permalink
fix: documentation in leptos_reactive::Trigger (#1844)
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraginoyuki authored Oct 7, 2023
1 parent 29216b2 commit c7607f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion leptos_dom/src/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ impl<El: ElementDescriptor + 'static> HtmlElement<El> {
/// 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"))]
Expand Down
4 changes: 2 additions & 2 deletions leptos_reactive/src/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit c7607f6

Please sign in to comment.