mirror of
https://github.com/encounter/rust-sdl2.git
synced 2026-07-10 21:18:41 -07:00
Added inner loop break to the demo.
This commit is contained in:
+2
-1
@@ -25,7 +25,8 @@ pub fn main() {
|
||||
if key == sdl2::keycode::EscapeKey {
|
||||
break 'main
|
||||
}
|
||||
}
|
||||
},
|
||||
sdl2::event::NoEvent => break 'event,
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user