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 fdc036e commit 7e5d5ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/event.rs
Original file line number Diff line number Diff line change
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 7e5d5ab

Please sign in to comment.