ソースを参照

fix typo in state.rs (#4699)

Jonas Kruckenberg 3 年 前
コミット
c7fec3e1ff
2 ファイル変更6 行追加1 行削除
  1. 5 0
      .changes/fix-typo-in-state-rs.md
  2. 1 1
      core/tauri/src/state.rs

+ 5 - 0
.changes/fix-typo-in-state-rs.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Fix typo in invalid state access panic message.

+ 1 - 1
core/tauri/src/state.rs

@@ -47,7 +47,7 @@ impl<'r, 'de: 'r, T: Send + Sync + 'static, R: Runtime> CommandArg<'de, R> for S
   fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError> {
     Ok(command.message.state_ref().try_get().unwrap_or_else(|| {
       panic!(
-        "state not managed for field `{}` on command `{}`. You muse call `.manage()` before using this command",
+        "state not managed for field `{}` on command `{}`. You must call `.manage()` before using this command",
         command.key, command.name
       )
     }))