瀏覽代碼

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

Fabian-Lars 2 年之前
父節點
當前提交
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> {