Run doc tests on Web as well (#3799)

This commit is contained in:
daxpedda 2024-07-20 21:20:18 +02:00 committed by GitHub
parent 88bbdb33da
commit 73c01fff96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 39 additions and 12 deletions

View file

@ -616,7 +616,7 @@ pub struct KeyEvent {
/// In games, you often want to ignore repated key events - this can be
/// done by ignoring events where this property is set.
///
/// ```
/// ```no_run
/// use winit::event::{ElementState, KeyEvent, WindowEvent};
/// use winit::keyboard::{KeyCode, PhysicalKey};
/// # let window_event = WindowEvent::RedrawRequested; // To make the example compile