From 9932c0333ec91713ef4698710439dccebd76ccfc Mon Sep 17 00:00:00 2001 From: Jason Tsai Date: Thu, 18 Apr 2024 14:27:40 +0800 Subject: [PATCH] chore: update documents --- README.md | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b276a5f..4e393a0 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ global_hotkey lets you register Global HotKeys for Desktop Applications. use global_hotkey::{GlobalHotKeyManager, hotkey::{HotKey, Modifiers, Code}}; // initialize the hotkeys manager -let manager = GlobalHotKeyManager::new().unwrap(); +let mut manager = GlobalHotKeyManager::new().unwrap(); // construct the hotkey let hotkey = HotKey::new(Some(Modifiers::SHIFT), Code::KeyD); diff --git a/src/lib.rs b/src/lib.rs index c7b2616..c88648d 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -23,7 +23,7 @@ //! use global_hotkey::{GlobalHotKeyManager, hotkey::{HotKey, Modifiers, Code}}; //! //! // initialize the hotkeys manager -//! let manager = GlobalHotKeyManager::new().unwrap(); +//! let mut manager = GlobalHotKeyManager::new().unwrap(); //! //! // construct the hotkey //! let hotkey = HotKey::new(Some(Modifiers::SHIFT), Code::KeyD);