Skip to content

Commit

Permalink
fix: incorrect cfg
Browse files Browse the repository at this point in the history
An incorrect #[cfg] attribute introduced in crossterm-rs#862 prevented compilation on unix
  • Loading branch information
joshka committed May 5, 2024
1 parent 6d20946 commit 7ff6c84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/event.rs
Expand Up @@ -910,7 +910,7 @@ impl Display for ModifierKeyCode {
///
/// # Platform-specific Notes
///
/// On macOS, the control, alt, and super keys is displayed as "Control", "Option", and
/// On macOS, the control, alt, and super keys are displayed as "Control", "Option", and
/// "Command" respectively. See
/// <https://support.apple.com/guide/applestyleguide/welcome/1.0/web>.
///
Expand All @@ -920,7 +920,6 @@ impl Display for ModifierKeyCode {
///
/// On other platforms, the super key is referred to as "Super".
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
#[cfg(target_os = "macos")]
match self {
ModifierKeyCode::LeftShift => write!(f, "Left Shift"),
ModifierKeyCode::LeftHyper => write!(f, "Left Hyper"),
Expand Down

0 comments on commit 7ff6c84

Please sign in to comment.