Skip to content

Commit

Permalink
Fix documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hiraginoyuki authored Oct 5, 2023
1 parent e0d15c1 commit eb3487b
Showing 1 changed file with 2 additions and 2 deletions.
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 eb3487b

Please sign in to comment.