From 24d6f8da49ddf1dc645c7931e34c860c58c09dff Mon Sep 17 00:00:00 2001 From: mitchmindtree Date: Sat, 10 Jun 2017 13:43:15 +1000 Subject: [PATCH] Update README to addition of ControlFlow --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7979037a..a7bd9f4f 100644 --- a/README.md +++ b/README.md @@ -28,15 +28,15 @@ another library. extern crate winit; fn main() { - let events_loop = winit::EventsLoop::new(); + let mut events_loop = winit::EventsLoop::new(); let window = winit::Window::new(&events_loop).unwrap(); events_loop.run_forever(|event| { match event { winit::Event::WindowEvent { event: winit::WindowEvent::Closed, .. } => { - events_loop.interrupt(); + winit::ControlFlow::Complete }, - _ => () + _ => winit::ControlFlow::Continue, } }); }