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

docs: Add link to usage example to `State` docs (#5165)

Fabian-Lars 2 лет назад
Родитель
Сommit
b779e52ba7
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      core/tauri/src/state.rs

+ 2 - 0
core/tauri/src/state.rs

@@ -9,6 +9,8 @@ use crate::{
 use state::Container;
 
 /// A guard for a state value.
+///
+/// See [`Manager::manage`](`crate::Manager::manage`) for usage examples.
 pub struct State<'r, T: Send + Sync + 'static>(&'r T);
 
 impl<'r, T: Send + Sync + 'static> State<'r, T> {