Skip to content

Commit

Permalink
Update doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
francesca64 committed Jun 3, 2018
1 parent e46f6ba commit caba966
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
//! screen, such as video games.
//!
//! ```no_run
//! use winit::{Event, WindowEvent};
//! use winit::{Event, LogicalSize, WindowEvent};
//! # use winit::EventsLoop;
//! # let mut events_loop = EventsLoop::new();
//!
//! loop {
//! events_loop.poll_events(|event| {
//! match event {
//! Event::WindowEvent { event: WindowEvent::Resized(w, h), .. } => {
//! println!("The window was resized to {}x{}", w, h);
//! Event::WindowEvent { event: WindowEvent::Resized(LogicalSize { width, height }), .. } => {
//! println!("The window was resized to {}x{}", width, height);
//! },
//! _ => ()
//! }
Expand Down

0 comments on commit caba966

Please sign in to comment.