From 16f26d82e75d17dc24e909140828366a1d6aac6b Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Sat, 23 Dec 2023 11:07:29 +0100 Subject: [PATCH] use_state: fix/clarify docstring (#3570) Signed-off-by: Yann Dirson --- packages/yew/src/functional/hooks/use_state.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/yew/src/functional/hooks/use_state.rs b/packages/yew/src/functional/hooks/use_state.rs index 055285a0582..441f3a5d96f 100644 --- a/packages/yew/src/functional/hooks/use_state.rs +++ b/packages/yew/src/functional/hooks/use_state.rs @@ -63,8 +63,8 @@ where /// # Caution /// /// The value held in the handle will reflect the value of at the time the -/// handle is returned by the `use_reducer`. It is possible that the handle does -/// not dereference to an up to date value if you are moving it into a +/// handle is returned by the `use_state()` call. It is possible that the handle does +/// not dereference to an up to date value, for example if you are moving it into a /// `use_effect_with` hook. You can register the /// state to the dependents so the hook can be updated when the value changes. ///