Skip to content

Commit c7fec3e

Browse files
fix typo in state.rs (#4699)
1 parent fd4c851 commit c7fec3e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changes/fix-typo-in-state-rs.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"tauri": patch
3+
---
4+
5+
Fix typo in invalid state access panic message.

core/tauri/src/state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ impl<'r, 'de: 'r, T: Send + Sync + 'static, R: Runtime> CommandArg<'de, R> for S
4747
fn from_command(command: CommandItem<'de, R>) -> Result<Self, InvokeError> {
4848
Ok(command.message.state_ref().try_get().unwrap_or_else(|| {
4949
panic!(
50-
"state not managed for field `{}` on command `{}`. You muse call `.manage()` before using this command",
50+
"state not managed for field `{}` on command `{}`. You must call `.manage()` before using this command",
5151
command.key, command.name
5252
)
5353
}))

0 commit comments

Comments
 (0)