Просмотр исходного кода

Fix weird docs typo/copy-paste error (#507)

- introduced in a8952a9ee8d8831fa911cef4e7035293c3a9f88b and 4518b6bc8cfbe246d0844b2a32f11f437115d00d
zohnannor 2 лет назад
Родитель
Сommit
15e9aa1958
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      packages/fermi/src/hooks/state.rs
  2. 2 2
      packages/hooks/src/usestate.rs

+ 2 - 2
packages/fermi/src/hooks/state.rs

@@ -92,8 +92,8 @@ impl<T: 'static> AtomState<T> {
     ///
     /// This is useful for passing the setter function to other components.
     ///
-    /// However, for most cases, calling `to_owned` o`AtomState`te is the
-    /// preferred way to get "anoth`set_state`tate handle.
+    /// However, for most cases, calling `to_owned` on the state is the
+    /// preferred way to get "another" state handle.
     ///
     ///
     /// # Examples

+ 2 - 2
packages/hooks/src/usestate.rs

@@ -110,8 +110,8 @@ impl<T: 'static> UseState<T> {
     ///
     /// This is useful for passing the setter function to other components.
     ///
-    /// However, for most cases, calling `to_owned` o`UseState`te is the
-    /// preferred way to get "anoth`set_state`tate handle.
+    /// However, for most cases, calling `to_owned` on the state is the
+    /// preferred way to get "another" state handle.
     ///
     ///
     /// # Examples