Rename ControlFlow variant from Complete to Break

This commit is contained in:
mitchmindtree 2017-06-20 21:25:53 +10:00
parent df1276d72a
commit 04ccad1dbc
13 changed files with 28 additions and 28 deletions

View file

@ -37,10 +37,10 @@ fn main() {
match event {
Event::WindowEvent { event, .. } => {
match event {
WindowEvent::Closed => return ControlFlow::Complete,
WindowEvent::Closed => return ControlFlow::Break,
WindowEvent::KeyboardInput {
input: winit::KeyboardInput { virtual_keycode: Some(winit::VirtualKeyCode::Escape), .. }, ..
} => return ControlFlow::Complete,
} => return ControlFlow::Break,
_ => ()
}
},