Skip to content

Commit fb5fdfc

Browse files
authored
docs: in Effect::watch, refer to 'dependency_fn' and 'handler' in doc (#3731)
1 parent 2658ae8 commit fb5fdfc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reactive_graph/src/effect/effect.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ impl Effect<LocalStorage> {
272272
///
273273
/// ## Immediate
274274
///
275-
/// If the final parameter `immediate` is true, the `callback` will run immediately.
276-
/// If it's `false`, the `callback` will run only after
277-
/// the first change is detected of any signal that is accessed in `deps`.
275+
/// If the final parameter `immediate` is true, the `handler` will run immediately.
276+
/// If it's `false`, the `handler` will run only after
277+
/// the first change is detected of any signal that is accessed in `dependency_fn`.
278278
///
279279
/// ```
280280
/// # use reactive_graph::effect::Effect;

0 commit comments

Comments
 (0)