Explorar o código

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

Fabian-Lars %!s(int64=2) %!d(string=hai) anos
pai
achega
b779e52ba7
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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> {