winit-core: fix tests

This commit is contained in:
Kirill Chibisov 2025-05-03 21:35:32 +09:00
parent 634b9baea2
commit 9598eb371c
4 changed files with 22 additions and 22 deletions

View file

@ -752,8 +752,8 @@ pub struct KeyEvent {
/// done by ignoring events where this property is set.
///
/// ```no_run
/// use winit::event::{ElementState, KeyEvent, WindowEvent};
/// use winit::keyboard::{KeyCode, PhysicalKey};
/// use winit_core::event::{ElementState, KeyEvent, WindowEvent};
/// use winit_core::keyboard::{KeyCode, PhysicalKey};
/// # let window_event = WindowEvent::RedrawRequested; // To make the example compile
/// match window_event {
/// WindowEvent::KeyboardInput {